Skip to content
Snippets Groups Projects
Unverified Commit b66c367f authored by CarlotaGalocha's avatar CarlotaGalocha Committed by GitHub
Browse files

Update pong.yaml

Change to pod instead of deployment
parent e6c373c1
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
apiVersion: apps/v1 apiVersion: v1
kind: Deployment kind: Pod
metadata: metadata:
name: pong-l2sm name: pong
labels:
app: test2
annotations:
k8s.v1.cni.cncf.io/networks: first-network
spec: spec:
replicas: 1 containers:
selector: - name: router
matchLabels: command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
app: ping-pong image: alpine:latest
template: securityContext:
metadata: capabilities:
labels: add: ["NET_ADMIN"]
app: ping-pong # Use this parameter if you want to place the pod in a specific node
annotations: nodeName: l2sm2
k8s.v1.cni.cncf.io/networks: my-first-network
spec:
containers:
- name: pong
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine:latest
securityContext:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
# nodeName:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment