Sunday, March 6, 2022

Kubernetes Clusters Part 4: Manifest file



Manifest file is a yaml file or in other words it is a configuration file....lol

Manifest file most basic infrastructure:
  1. apiVersion
  2. kind
  3. metada (name, label)
  4. 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



No comments:

Post a Comment

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...