-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: setup of temporary dataapps URL redirector for CSAS migration
- Loading branch information
Showing
6 changed files
with
65 additions
and
2 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
Empty file.
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
15 changes: 15 additions & 0 deletions
15
provisioning/apps-proxy/kubernetes/templates/nginx-redir/cm.yaml
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: nginx-config | ||
namespace: $NAMESPACE | ||
data: | ||
nginx.conf: | | ||
server { | ||
listen 8000; | ||
server_name ~^(?<subdomain>.+)\.hub\.csas\.keboola\.cloud$; | ||
location / { | ||
return 302 https://$subdomain.hub.cs.keboola.cloud$request_uri; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
provisioning/apps-proxy/kubernetes/templates/nginx-redir/deployment.yaml
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
namespace: $NAMESPACE | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: $CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:latest | ||
volumeMounts: | ||
- name: nginx-config-volume | ||
mountPath: /etc/nginx/nginx.conf | ||
subPath: nginx.conf | ||
ports: | ||
- containerPort: 8000 | ||
volumes: | ||
- name: nginx-config-volume | ||
configMap: | ||
name: nginx-config |