title: How to Deploy Kubernetes yaml using C#
body: <p>I have yaml file</p>
  <pre><code>  apiVersion: batch/v1beta1
     kind: CronJob
     metadata:
       name: ct-cron
     spec:
       schedule: &quot;*/1 * * * *&quot;
       concurrencyPolicy: Forbid
       jobTemplate:
         spec:
           template:
             metadata:
               labels:
                 app: your-periodic-batch-job
                 aadpodidbinding: managedaks
             spec:
               containers:
               - name: redmine-cron
                 image: orm.azurecr.io/py-app:v3
                 imagePullPolicy: IfNotPresent
               - name: redmine-cron1
                 image: orm.azurecr.io/py-app:v5
                 imagePullPolicy: IfNotPresent
                 volumeMounts:
                   - name: store01-inline1
                     mountPath: &quot;/mnt/secrets-store&quot;
                     readOnly: true            
               restartPolicy: OnFailure
               volumes:
                 - name: store01-inline1
                   csi:
                     driver: secrets-store.csi.k8s.io
                     readOnly: true
                     volumeAttributes:
                       secretProviderClass: &quot;azure-kvname-podid&quot;
  </code></pre>
  <p>I stored this yaml as a string in the database.I want to deploy this YAML using c# code. But I couldn't find any option to deploy the yaml file using c# code.Is it possible ?</p>