-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to CI_ENVIRONMENT_SLUG for env name
- Loading branch information
Showing
5 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This directory contains the actual manifests used to deploy the built Docker image to Kubernetes. | ||
The manifests contain placeholders (like `__CI_BUILD_REF_SLUG__`) which are replaced by the GitLab CI pipeline. | ||
The manifests contain placeholders (like `__CI_ENVIRONMENT_SLUG__`) which are replaced by the GitLab CI pipeline. | ||
|
||
For more information, see the repo root [README.md](../README.md) and the [.gitlab-ci.yml](../.gitlab-ci.yml). |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: presentation-gitlab-k8s-__CI_BUILD_REF_SLUG__ | ||
name: presentation-gitlab-k8s-__CI_ENVIRONMENT_SLUG__ | ||
namespace: presentation-gitlab-k8s | ||
labels: | ||
app: __CI_BUILD_REF_SLUG__ | ||
app: __CI_ENVIRONMENT_SLUG__ | ||
annotations: | ||
kubernetes.io/tls-acme: "true" | ||
kubernetes.io/ingress.class: "nginx" | ||
spec: | ||
tls: | ||
- hosts: | ||
- __CI_BUILD_REF_SLUG__-presentation-gitlab-k8s.edenmal.net | ||
- __CI_ENVIRONMENT_SLUG__-presentation-gitlab-k8s.edenmal.net | ||
# the secret used here is an unsigned wildcard cert for demo purposes | ||
# use your own or comment this out | ||
secretName: tls-wildcard-demo | ||
rules: | ||
- host: __CI_BUILD_REF_SLUG__-presentation-gitlab-k8s.edenmal.net | ||
- host: __CI_ENVIRONMENT_SLUG__-presentation-gitlab-k8s.edenmal.net | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: presentation-gitlab-k8s-__CI_BUILD_REF_SLUG__ | ||
serviceName: presentation-gitlab-k8s-__CI_ENVIRONMENT_SLUG__ | ||
servicePort: 8000 |
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