Skip to content
Snippets Groups Projects
Commit 64d0b1a4 authored by Alejandro Tjaarda's avatar Alejandro Tjaarda
Browse files

examples: removed unused example

parent c3b02a7d
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: my-bridge-net
namespace: default # Or any namespace you want this network to be available in
spec:
config: '{
"cniVersion": "0.3.1",
"name": "my-bridge-net",
"type": "bridge",
"bridge": "brtest",
"isGateway": true,
"ipMasq": false,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"subnet": "10.244.1.0/24",
"rangeStart": "10.244.1.10",
"rangeEnd": "10.244.1.100",
"routes": [
{ "dst": "0.0.0.0/0" }
],
"gateway": "10.244.1.1"
}
}'
apiVersion: v1
kind: Pod
metadata:
name: ping
annotations:
k8s.v1.cni.cncf.io/networks: '[{"name": "veth10","ips": ["10.0.0.6/24"]}]'
spec:
containers:
- name: router
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: ant-machine
apiVersion: v1
kind: Pod
metadata:
name: pong
annotations:
k8s.v1.cni.cncf.io/networks: '[{"name": "veth10","ips": ["10.0.0.5/24"]}]'
spec:
containers:
- name: router
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: ant-machine
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