Kubernetes manifest
Course: Kubernetes Part 1 - chapter 9
A manifest defines the desired state for Kubernetes resources, such as Pods, Deployments, Services, etc., in a declarative manner.
Original command
Section titled “Original command”kubectl run nginx --image=nginx --port=80Manifest
Section titled “Manifest”apiVersion: v1kind: Podmetadata: name: nginxspec: containers: - name: nginx image: nginx ports: - containerPort: 80Breaking down the manifest
Section titled “Breaking down the manifest”
Applying the manifest
Section titled “Applying the manifest”kubectl apply -f manifest.ymlDelete the pod
Section titled “Delete the pod” kubectl delete pod nginx