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