first commit
This commit is contained in:
19
multus/nad-br-servicios.yaml
Normal file
19
multus/nad-br-servicios.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
apiVersion: "k8s.cni.cncf.io/v1"
|
||||
kind: NetworkAttachmentDefinition
|
||||
metadata:
|
||||
name: br-servicios
|
||||
namespace: default
|
||||
spec:
|
||||
config: '{
|
||||
"cniVersion": "0.3.1",
|
||||
"type": "bridge",
|
||||
"bridge": "br-servicios",
|
||||
"ipam": {
|
||||
"type": "host-local",
|
||||
"subnet": "192.168.200.0/22",
|
||||
"rangeStart": "192.168.200.100",
|
||||
"rangeEnd": "192.168.200.200",
|
||||
"routes": [{"dst": "0.0.0.0/0"}],
|
||||
"gateway": "192.168.200.1"
|
||||
}
|
||||
}'
|
14
multus/test-multus-pod.yaml
Normal file
14
multus/test-multus-pod.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: multus-test
|
||||
annotations:
|
||||
k8s.v1.cni.cncf.io/networks: br-servicios
|
||||
spec:
|
||||
containers:
|
||||
- name: alpine
|
||||
image: alpine
|
||||
command: ["sleep", "infinity"]
|
||||
securityContext:
|
||||
capabilities:
|
||||
add: ["NET_ADMIN"]
|
Reference in New Issue
Block a user