---
apiVersion: resource.k8s.io/v1beta1
kind: ResourceSlice
metadata:
name: kind-worker-network-interfaces
spec:
devices:
- name: eth0
basic:
Install Multus:
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/e2e/templates/cni-install.yml.j2
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset-thick.yml
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/refs/tags/v0.8.0/doc/crds/daemonset-install.yaml
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/refs/tags/v0.8.0/doc/crds/whereabouts.cni.cncf.io_ippools.yaml
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/refs/tags/v0.8.0/doc/crds/whereabouts.cni.cncf.io_overlappingrangeipreservations.yaml
Install demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"github.com/vishvananda/netlink" | |
) | |
func main() { |
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlan-nad-3
spec:
config: '{
"cniVersion":"0.4.0",
"type":"macvlan",
Install Multus:
helm install multus ./deployments/Multus --set registry=ghcr.io/lioneljouin/l-3-4-gateway-api-poc
VLAN
cat <<EOF | kubectl apply -f -
---
apiVersion: "k8s.cni.cncf.io/v1"
This PoC is about 3 different things:
- ResourceClaim Status for Networking
- Container Runtime as DRA Driver
- Network DRA Driver as Re-Usable Framework/Pattern
Repositories:
Create a deployment + a ClusterIP service selecting the pod
cat <<EOF | kubectl apply -f -
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-pod
labels:
app: demo-pod
- Kubernetes: https://github.com/LionelJouin/kubernetes/tree/multi-network
- API
- registry, printers and validation
- Set all fields as immutable except
enable
in PodNetwork Spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: operator.tigera.io/v1 | |
kind: Installation | |
metadata: | |
name: default | |
spec: | |
calicoNetwork: | |
nodeAddressAutodetectionV4: | |
cidrs: | |
- '10.254.0.0/24' | |
ipPools: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nc-client | |
labels: | |
app: nc-client | |
spec: | |
containers: | |
- name: nc-client |
NewerOlder