Kubernetes in three diagrams

Container Deployment

Container Deployment
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
minecraft-927348482-rznvq 1/1 Running 0 2d
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-agent-ac084391-0 Ready agent 3d v1.7.7
k8s-agent-ac084391-1 Ready agent 3d v1.7.7
k8s-master-ac084391-0 Ready master 3d v1.7.7

Kubernetes Objects

apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-back
spec:
containers:
- name: azure-vote-back
image: redis
ports:
- containerPort: 6379
name: redis
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-front
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-front
spec:
containers:
- name: azure-vote-front
image: microsoft/azure-vote-front:v1
ports:
- containerPort: 80
env:
- name: REDIS
value: "azure-vote-back"
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: azure-vote-front
kubectl create -f azure-vote.yaml
Kubernetes Object

Architecture

Architecture

Conclusion

https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-intro-kubernetes

Resource

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store