<p>I am learning about Azure Kubernetes, I am basically following this tutorial: <a href="https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application</a> </p>

<p>I am at the point where I am opening the Kubernetes manifest file, and I fell out out my chair and almost passed out. I'm a bit intimidated by this file. I am curious are these files created manually or is there a program out there that helps with this?</p>

TheWebGuy
<p>There are two major ways to manage k8s entities:</p>

<p>1) You can use CLI tools to perform various actions with your cluster, for example:</p>

<pre><code>kubectl create deployment nginx --image nginx
</code></pre>

<p>2) Alternatively, you can use yaml files to achieve the same result.</p>

<p>Create file with content like this </p>

<p><code>
apiVersion: apps/v1 
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
</code></p>

<p>and execute this:</p>

<pre><code>kubectl apply -f &lt;path to your file&gt;
</code></pre>

<p>Both ways will lead you to the same outcome. </p>

<p>You can find some additional information about it <a href="https://kubernetes.io/docs/concepts/overview/object-management-kubectl/overview/" rel="nofollow noreferrer">here</a>
Hope it helps.</p>
