YAML in K8s - pracip96/K8s-Learning GitHub Wiki
K8s YAML definition consists of below and are required fields:
- apiVersion: STRING
- kind: STRING
- metadata: DICTIONARY
- 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.