Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
ace26e65
Commit
ace26e65
authored
5 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
New hostname vre.staging.envri.eu with redirect
parent
79f87233
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/playbooks/notebooks-redirect.yaml
+54
-0
54 additions, 0 deletions
common/playbooks/notebooks-redirect.yaml
envri-hub/inventory/99-all.yaml
+4
-1
4 additions, 1 deletion
envri-hub/inventory/99-all.yaml
with
58 additions
and
1 deletion
common/playbooks/notebooks-redirect.yaml
0 → 100644
+
54
−
0
View file @
ace26e65
---
-
name
:
Notebooks Redirect Deployment
hosts
:
master[0]
become
:
true
tasks
:
-
name
:
Deploy Redirects
vars
:
namespace
:
"
{{
notebooks_redirect.namespace
}}"
old_hostname
:
"
{{
notebooks_redirect.hostname
}}"
shell
:
|-
kubectl apply -f - << EOF
---
apiVersion: v1
kind: Service
metadata:
namespace: {{ namespace }}
name: redirect-old
labels:
app: redirect-old
spec:
ports:
- name: http
port: 80
protocol: TCP
selector:
app: redirect-old
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/rewrite-target: https://{{ notebooks_hostname }}$1
name: redirect-old
namespace: {{ namespace }}
spec:
tls:
- hosts:
- {{ old_hostname }}
secretName: acme-tls-notebooks-old
rules:
- host: {{ old_hostname }}
http:
paths:
- backend:
service:
name: redirect-root
port:
name: http
path: /(.*)
pathType: Prefix
EOF
when
:
notebooks_redirect is defined
This diff is collapsed.
Click to expand it.
envri-hub/inventory/99-all.yaml
+
4
−
1
View file @
ace26e65
...
...
@@ -16,5 +16,8 @@ all:
site_name
:
envri-hub
vault_mount_point
:
secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/envri-hub
notebooks_hostname
:
envri-vre.cloud.cesnet.cz
notebooks_hostname
:
vre.staging.envri.eu
notebooks_redirect
:
hostname
:
envri-vre.cloud.cesnet.cz
namespace
:
envri-hub
grafana_hostname
:
grafana.envri-vre.cloud.cesnet.cz
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment