vi multi-container.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: multi-container
name: multi-container
namespace: edu18
spec:
containers:
- image: ghcr.io/shclub/nginx
name: nginx
- image: ghcr.io/shclub/redis
name: redis
- image: ghcr.io/shclub/memcached
name: memcashed
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
kubectl create -f multi-container.yaml
kubectl get pod -n edu18