Skip to content
Snippets Groups Projects
Verified Commit 750e9e60 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Use kubeconfig from variable

parent 9aa0d2f8
No related branches found
No related tags found
1 merge request!50Add k8s deployment
Pipeline #179505 failed
......@@ -39,6 +39,7 @@ deploy docker image:
stage: deploy
image: bitnami/kubectl:latest
script:
- echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
- cd deploy
- sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@$(cat ../DIGESTFILE)/g deployment.yaml
- for file in *; do kubectl apply -f $file; done
- for file in *; do kubectl --kubeconfig=/tmp/kubeconfig apply -f $file; done
......@@ -29,9 +29,74 @@ spec:
number: 80
path: /
pathType: Prefix
- host: hacknsun.camp
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
- host: www.hacknsun.camp
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
- host: hacknfun.camp
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
- host: www.hacknfun.camp
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
- host: teckids.de
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
- host: www.teckids.de
http:
paths:
- backend:
service:
name: teckids-website
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- teckids.org
- www.teckids.org
- hacknsun.camp
- www.hacknsun.camp
- hacknfun.camp
- www.hacknfun.camp
- teckids.de
- www.teckids.de
secretName: teckids-website-tls
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment