Commit 63d1ecdb authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren deploy/prime/prime-ingress.yaml,...

Aktualisieren deploy/prime/prime-ingress.yaml, deploy/prime/prime-deployment.yaml, .gitlab-ci.yml Dateien
parent d20f938b
......@@ -63,10 +63,10 @@ deploy-prime:
- $PRIME == "yes"
script:
- echo prime-$GITLAB_USER_ID.loki.th-luebeck.dev
- wget -q https://github.com/mikefarah/yq/releases/download/3.4.0/yq_linux_amd64 -O ./yq && chmod +x yq
- ./yq w -i deploy/prime/prime-ingress.yaml spec.rules[0].host prime-$GITLAB_USER_ID.loki.th-luebeck.dev
- ./yq w -i deploy/prime/prime-ingress.yaml spec.tls[0].hosts[0] prime-$GITLAB_USER_ID.loki.th-luebeck.dev
- kubectl apply -f deploy/prime
- mo deploy/prime/prime-ingress.yaml | kubectl apply -f -
- mo deploy/prime/prime-service.yaml | kubectl apply -f -
- mo deploy/prime/prime-deployment.yaml | kubectl delete -f - || true
- mo deploy/prime/prime-deployment.yaml | kubectl apply -f -
deploy-cache:
stage: deploy
......
......@@ -18,7 +18,7 @@ spec:
- name: gitlab-registry-credentials
containers:
- name: prime
image: git.mylab.th-luebeck.de:4181/cloud-native/lab-k8s/prime:latest
image: {{ CI_REGISTRY_IMAGE }}/prime:latest
imagePullPolicy: Always
resources:
limits:
......
......@@ -8,7 +8,7 @@ metadata:
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
rules:
- host: "prime.loki.th-luebeck.dev"
- host: "prime-{{ GITLAB_USER_ID }}.loki.th-luebeck.dev"
http:
paths:
- backend:
......@@ -16,4 +16,4 @@ spec:
servicePort: 80
tls:
- secretName: prime-ingress-cert
hosts: ["prime.loki.th-luebeck.dev"]
hosts: ["prime-{{ GITLAB_USER_ID }}.loki.th-luebeck.dev"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment