Articles → MICROSOFT AZURE → Add Kubernetes Cluster In Azure
Add Kubernetes Cluster In Azure
Steps
Click to Enlarge
Click to Enlarge
Click to Enlarge
How To Add Workloads And Services In Kubernetes Cluster?
Click to Enlarge
apiVersion: apps/v1
kind: Deployment
metadata:
name: app-deployment
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-image
image: nginx
ports:
- containerPort: 80
Click to Enlarge
Click to Enlarge
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: my-app
Click to Enlarge