Prepare deployments to TransIP #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- transip | |
jobs: | |
install-ingress-and-cert-manager: | |
name: Install the ingress and cert-manager resources | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@v4 | |
- name: Set up helm | |
uses: wahyd4/kubectl-helm-action@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }} | |
with: | |
args: | | |
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx | |
helm repo add jetstack https://charts.jetstack.io | |
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/ | |
helm repo update | |
- name: Install metrics-server with helm | |
uses: wahyd4/kubectl-helm-action@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }} | |
with: | |
args: helm upgrade --install metrics-server metrics-server/metrics-server | |
- name: Install Nginx ingress with helm | |
uses: wahyd4/kubectl-helm-action@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }} | |
with: | |
args: helm upgrade --install nginx-ingress ingress-nginx/ingress-nginx --set controller.publishService.enabled=true | |
- name: Install cert manager with helm | |
uses: wahyd4/kubectl-helm-action@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }} | |
with: | |
args: | | |
kubectl create namespace cert-manager --dry-run=client -o yaml | kubectl apply -f - | |
helm upgrade --install cert-manager jetstack/cert-manager --namespace cert-manager --version v1.7.1 --set installCRDs=true | |
kubectl apply -f cert-manager-letsencrypt.yaml | |
# - name: Create kubernetes ingress | |
# run: | | |
# kubectl apply -f ingress.yaml | |
# - name: Get public loadbalancer IP address | |
# run: kubectl get service nginx-ingress-ingress-nginx-controller -o=jsonpath='{.status.loadBalancer.ingress[*].ip}' |