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

fix kustomzie build

parent e5b85a82
No related branches found
No related tags found
1 merge request!50Add k8s deployment
Pipeline #179573 canceled
...@@ -83,6 +83,7 @@ deploy review: ...@@ -83,6 +83,7 @@ deploy review:
script: script:
- cd deploy/overlays/review - cd deploy/overlays/review
- kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$CI_COMMIT_REF_NAME@$(cat ../../../DIGESTFILE) - kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$CI_COMMIT_REF_NAME@$(cat ../../../DIGESTFILE)
- kustomize edit set nameprefix $CI_COMMIT_REF_SLUG
- kustomize build | sed s/__REVIEW_NAME__/$CI_COMMIT_REF_SLUG/g > output.yaml - kustomize build | sed s/__REVIEW_NAME__/$CI_COMMIT_REF_SLUG/g > output.yaml
- kubectl --kubeconfig=/tmp/kubeconfig apply -f output.yaml - kubectl --kubeconfig=/tmp/kubeconfig apply -f output.yaml
...@@ -95,7 +96,7 @@ delete review: ...@@ -95,7 +96,7 @@ delete review:
before_script: before_script:
- echo $KUBECONFIG | base64 -d > /tmp/kubeconfig - echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
- cd deploy/overlays/review - cd deploy/overlays/review
- kustomize build | envsubst > output.yaml - kustomize build | sed s/__REVIEW_NAME__/$CI_COMMIT_REF_SLUG/g > output.yaml
script: script:
- kubectl --kubeconfig=/tmp/kubeconfig delete -f output.yaml - kubectl --kubeconfig=/tmp/kubeconfig delete -f output.yaml
when: manual when: manual
......
...@@ -19,22 +19,19 @@ spec: ...@@ -19,22 +19,19 @@ spec:
- name: caddy - name: caddy
image: registry.edugit.org/teckids/team-pr/teckids.org:IMAGE_TAG image: registry.edugit.org/teckids/team-pr/teckids.org:IMAGE_TAG
ports: ports:
- containerPort: 80 - containerPort: 80
livenessProbe: name: http
httpGet: livenessProbe:
scheme: HTTP httpGet:
port: http scheme: HTTP
path: / port: http
timeoutSeconds: 10 path: /
initialDelaySeconds: 60 timeoutSeconds: 10
name: adressbuch initialDelaySeconds: 60
ports: readinessProbe:
- containerPort: 80 httpGet:
name: http scheme: HTTP
readinessProbe: port: http
httpGet: path: /
scheme: HTTP timeoutSeconds: 10
port: http initialDelaySeconds: 120
path: /
timeoutSeconds: 10
initialDelaySeconds: 120
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