Manifest file is a yaml file or in other words it is a configuration file....lol
- apiVersion
- kind
- metada (name, label)
- spec (containers)
Do note that even if you declare only these properties for your pods, kubernetes will still auto create alooot of other properties.
USE VISUAL STUDIO CODE to edit, simpler cause it can auto template for you and also it is a word editor.
pod.yaml manifest file
apiVersion: v1
kind: Pod #(P should be capital!)
metadata:
name: pod1 #(all should be small letters)
labels:
name: nginx-app
spec:
containers:
- name: c1
image: nginx
- name: c2
image: tomcat
kind: Pod #(P should be capital!)
metadata:
name: pod1 #(all should be small letters)
labels:
name: nginx-app
spec:
containers:
- name: c1
image: nginx
- name: c2
image: tomcat
No comments:
Post a Comment