Skip to content

Update tetrisaks.yml #1

Update tetrisaks.yml

Update tetrisaks.yml #1

Workflow file for this run

name: Deploy to AKS
on:
push:
branches:
- master # Update this to your desired branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up K8s credentials
uses: azure/setup-kubectl@v3
with:
version: 'latest'
- name: Configure Kubeconfig
run: echo "${{ secrets.KUBE_CONFIG_DATA }}" | base64 --decode > $HOME/.kube/config
- name: Deploy manifests
run: |
kubectl apply -f k8-manifest/k8-deployment.yaml
kubectl apply -f k8-manifest/k8-service.yaml
kubectl apply -f k8-manifest/metrics-server.yaml
kubectl apply -f k8-manifest/tetris-hpa.yaml
- name: Verify Deployment
run: |
kubectl rollout status deployment/tetris-deployment
kubectl get pods