Source: https://github.com/carsonoid/kube-decon
The Network Provider contract:
Source: https://github.com/carsonoid/kube-decon
Each pod has a cluster-wide unique IP address.
Each pod has a cluster-wide unique IP address.
1. Under what circumstances can we reach this IP address directly?
1. Under what circumstances can we reach this IP address directly?
2. Why would we NOT want to reach the IP address directly?
Each pod has a cluster-wide unique IP address.
Source: https://github.com/carsonoid/kube-decon
Services provide a persistent IP and forward network traffic.
An abstraction which defines a logical set of Pods and a policy by which to access them
TRAFFIC
Source: https://github.com/carsonoid/kube-decon
TRAFFIC
TRAFFIC
TRAFFIC
NODE
POD
pod.spec.volumes
pod .spec .Containers.[] .volumeMounts
NODE
POD
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: my-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: ssd
resources:
requests:
storage: 50Gi
apiVersion: extensions/v1beta1
kind: Deployment
spec:
template:
spec:
containers:
- name: nginx
image: nginx
volumeMounts:
- name: my_volume
mountPath: /var/data
volumes:
- name: my_volume
persistentVolumeClaim:
claimName: my-pvc
# Can be omitted if
# Dynamic Provisioning
# is enabled
apiVersion: v1
kind: PersistentVolume
metadata:
name: my-pv
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteOnce
Source: https://kubernetes.io/docs/concepts/storage/volumes/
Source: https://kubernetes.io/docs/concepts/storage/volumes/
kind: Service
apiVersion: v1
metadata:
name: db-service
spec:
type: ExternalName
externalName: db-host.com
CNAME