Deploy-a-sample-app---Kubernetes

Deploy-a-sample-app—Kubernetes

Deploy-a-sample-app via MiniKube on GCP

1

apiVersion: apps/v1 kind: Deployment metadata: name: sample-app spec: replicas: 3 # Adjust the number of replicas based on your high availability requirements selector: matchLabels: app: sample-app template: metadata: labels: app: sample-app spec: containers: - name: sample-app image: nginx:latest # Replace with your desired publicly available app image ports: - containerPort: 80 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate

 - Let’s break each line down…