K8s components job
stages:
- 🏗️
🚧_init_components:
stage: 🏗️
image:
name: bitnami/kubectl:latest
entrypoint: ['']
script:
- kubectl config use-context <group_name>/<project_name>:<agent_name>
- kubectl create namespace ingress-nginx --dry-run=client -o yaml --validate=false | kubectl apply --validate=false -f -
- kubectl apply -n ingress-nginx --validate=false -f init/ingress-controller.yaml
- kubectl create namespace dns-management --dry-run=client -o yaml --validate=false | kubectl apply --validate=false -f -
- sed -e "s|ENV_DNS_KEY|$DNS_KEY|g" init/dns.yaml > dns.yaml
- sed -e "s|ENV_DNS_SECRET|$DNS_SECRET|g" dns.yaml > dns2.yaml
- kubectl apply -n dns-management --validate=false -f dns2.yaml