Skip to content

Commit

Permalink
Add mumbai
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jun 16, 2023
1 parent 9487e62 commit dc737b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,29 @@ jobs:
export REF_NAME=${{ github.ref_name }}
COMMIT_TAG=$REF_NAME
export COMMIT_TAG=$REF_NAME
envsubst <./.k8s/manifest-london.yml >./.k8s/manifest-london.yml.out
mv ./.k8s/manifest-london.yml.out ./.k8s/manifest-london.yml
kubectl apply -f .k8s/manifest-london.yml --kubeconfig=/dev/null --server=$K8S_URL --certificate-authority=cert.crt --token=$K8S_TOKEN
envsubst <./.k8s/manifest.yml >./.k8s/manifest.yml.out
mv ./.k8s/manifest.yml.out ./.k8s/manifest.yml
kubectl apply -f .k8s/manifest.yml --kubeconfig=/dev/null --server=$K8S_URL --certificate-authority=cert.crt --token=$K8S_TOKEN
deploy-dubai:
deploy-mumbai:
needs: docker-build-and-push
runs-on: ubuntu-latest
container:
image: meezaan/kubectl:latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Env Substring
run: sudo apt-get update && sudo apt-get -y install gettext-base
- name: Install Kubectl
run: |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod u+x ./kubectl
- name: Deploy
- name: Check out repository code
uses: actions/checkout@v3
- name: Update Consumer and Keys
run: |
curl -o ./.k8s/deploy.sh https://raw.githubusercontent.com/islamic-network/k8s-deployment/master/deploy.sh
chmod u+x ./.k8s/deploy.sh
export K8S_URL=${{ secrets.K8S_MUMBAI_URL }}
export K8S_TOKEN=${{ secrets.K8S_MUMBAI_TOKEN }}
export K8S_CA=${{ secrets.K8S_MUMBAI_CA }}
echo "$K8S_CA" | base64 --decode > cert.crt
export REF_NAME=${{ github.ref_name }}
export K8S_URL=${{ secrets.K8S_DUBAI_URL }}
export K8S_TOKEN=${{ secrets.K8S_DUBAI_TOKEN }}
export K8S_CA=${{ secrets.K8S_DUBAI_CA }}
sh ./.k8s/deploy.sh
COMMIT_TAG=$REF_NAME
export COMMIT_TAG=$REF_NAME
envsubst <./.k8s/manifest.yml >./.k8s/manifest.yml.out
mv ./.k8s/manifest.yml.out ./.k8s/manifest.yml
kubectl apply -f .k8s/manifest.yml --kubeconfig=/dev/null --server=$K8S_URL --certificate-authority=cert.crt --token=$K8S_TOKEN
5 changes: 5 additions & 0 deletions .k8s/manifest-london.yml → .k8s/manifest-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ spec:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
tolerations:
- key: kubernetes.azure.com/scalesetpriority
operator: "Equal"
value: spot
effect: NoSchedule
containers:
- name: apache-exporter-sidecar
image: lusotycoon/apache-exporter
Expand Down
5 changes: 0 additions & 5 deletions .k8s/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ spec:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
tolerations:
- key: kubernetes.azure.com/scalesetpriority
operator: "Equal"
value: spot
effect: NoSchedule
containers:
- name: apache-exporter-sidecar
image: lusotycoon/apache-exporter
Expand Down

0 comments on commit dc737b4

Please sign in to comment.