Azure CNI (Container Networking Interface) is a networking plugin for Kubernetes clusters running on Microsoft Azure that enables container networking. CNI provides a standardized way for network providers to integrate with container runtimes, allowing containers to communicate with each other and with the outside world. :bangbang:
Nodes get an IP address: Kubenet
Calico enables Kubernetes workloads and non-Kubernetes or legacy workloads to communicate seamlessly and securely. Kubernetes pods are first class citizens on your network and able to communicate with any other workload on your network.
azure-files-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: mypod
spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- image: mcr.microsoft.com/oss/nginx/nginx:1.15.5-alpine
name: mypod
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: azure
mountPath: /mnt/azure
volumes:
- name: azure
csi:
driver: file.csi.azure.com
readOnly: false
volumeAttributes:
secretName: azure-secret # required
shareName: aksshare # required
mountOptions: "dir_mode=0777,file_mode=0777,cache=strict,actimeo=30,nosharesock" #optional
$ kubectl apply -f azure-files-pod.yaml