kind create cluster --config universe-config.yml
Example of clone config
apiVersion: v1
kind: Pod
metadata:
name: clone
spec:
containers:
- name: clone
image: explabs/k8star-wars-clone
ports:
- containerPort: 80
Apply new clone
kubectl apply -f supply-clones/clone.yml
Command returns
pod/clone created
Show clone
kubectl get pods
Result is
NAME READY STATUS RESTARTS AGE
clone 1/1 Running 0 37s
Squad example
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: clone
spec:
replicas: 3
selector:
matchLabels:
person: clone
class: empire
template:
metadata:
labels:
person: clone
class: empire
spec:
containers:
- name: clone
image: explabs/k8star-wars-clone
ports:
- containerPort: 80
Apply new clones squad
kubectl apply -f supply-clones/squad.yml
Command returns
replicaset.apps/clone created
Show squad
kubectl get rs
Output is
NAME DESIRED CURRENT READY AGE
clone 3 3 3 58s
Show clones
kubectl get pods
NAME READY STATUS RESTARTS AGE
clone 1/1 Running 0 2m19s
clone-tvxfb 1/1 Running 0 1m9s
clone-tzng5 1/1 Running 0 1m9s
clone-z4vpv 1/1 Running 0 1m9s
LAAT(Low Altitude Assault Transport) Land clones with new LAAT ship
kubectl apply -f supply-clones/squad.yml
Command returns
deployment.apps/clone created
Show Laat
kubectl get deploy
Output is
NAME READY UP-TO-DATE AVAILABLE AGE
clone 3/3 3 3 10s
Show clones
kubectl get pods
NAME READY STATUS RESTARTS AGE
clone 1/1 Running 0 14m
clone-bbd859cbf-9dlf6 1/1 Running 0 35s
clone-bbd859cbf-nfzzp 1/1 Running 0 35s
clone-bbd859cbf-rkk69 1/1 Running 0 35s
clone-tvxfb 1/1 Running 0 14m
clone-tzng5 1/1 Running 0 14m
clone-z4vpv 1/1 Running 0 14m