YAML in K8s - pracip96/K8s-Learning GitHub Wiki

K8s YAML definition consists of below and are required fields:

  1. apiVersion: STRING
  2. kind: STRING
  3. metadata: DICTIONARY
  4. spec: LIST/ARRAY (- indicates item in the LIST)

Cmd to create POD: kubectl create -f pod-definition.yml

  • **REPLICATION** CONTROLLER: OLDER TECH
  • **REPLICA SET**: NEWER TECH

SELECTOR in mandatory in RS, whereas REPLICATION-CONTROLLER its not.