27 lines
590 B
YAML
27 lines
590 B
YAML
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"
|