Kubernetes
Deployments
- Stateless, persistent
Stateful Sets
- Stateful, persistent
- -0 suffix
Jobs
- Run to completion apps
CLI
kc get po
kc port-forward <pod_name> 8080:8080
# open editor and modify a yaml
kc edit deployment <name>
kc apply -f file.yaml
Pods
- A compute node holding 1 or more Docker containers
- Each pod has it's own internal IP
Declarative Nature
- Kubernetes configs are declarative. If you declare two pods then delete one, it'll return
Configmaps
Configmaps let us declare environment variables
env:
- name: API_PORT
valueFrom:
configMapKeyRef:
name: synergychat-api-configmap
key: API_PORT