ungleich-k8s/cni/multus/pod-router2-router3.yaml

28 lines
590 B
YAML
Raw Normal View History

2022-11-27 09:33:29 +00:00
apiVersion: v1
kind: Pod
metadata:
name: router2
annotations:
k8s.v1.cni.cncf.io/networks: router2
spec:
containers:
- name: samplepod
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine
nodeSelector:
kubernetes.io/hostname: "router2"
---
apiVersion: v1
kind: Pod
metadata:
name: router3
annotations:
k8s.v1.cni.cncf.io/networks: router3
spec:
containers:
- name: samplepod
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine
nodeSelector:
kubernetes.io/hostname: "router3"