Articles → MICROSOFT AZURE → Add Kubernetes Cluster In Azure

Add Kubernetes Cluster In Azure






Steps




Picture showing the kubernetes services in search box of the azure portal
Click to Enlarge



Picture showing the add kubernetes cluster option for creating the new kubernetes cluster
Click to Enlarge





Picture showing the create kubernetes cluster screen for creating the new kubernetes cluster
Click to Enlarge


How To Add Workloads And Services In Kubernetes Cluster?




Picture showing the add button for adding the new workload inside the 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


Picture showing the add screen for adding the workload using the yaml code
Click to Enlarge



Picture showing the add button for adding the new services and ingresses inside the kubernetes cluster
Click to Enlarge



apiVersion: v1
kind: Service
metadata:
 name: my-service
spec:
 type: LoadBalancer
 ports:
 - port: 80
 selector:
   app: my-app


Picture showing the add screen for adding the services and ingresses  using the yaml code
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Sunday, May 16, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250