Skip to content

Commit

Permalink
Supply hostname to uptermd
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Dec 13, 2020
1 parent 89ef8b5 commit 2236989
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions charts/uptermd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
{{- end }}
- --node-addr
- $(POD_IP):22
- --hostname
- {{ .Values.hostname }}
{{- range $key, $val := .Values.host_keys }}
{{ if hasSuffix ".pub" $key }}
{{ else }}
Expand Down
6 changes: 3 additions & 3 deletions charts/uptermd/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ metadata:
spec:
tls:
- hosts:
- {{ .Values.websocket.host }}
secretName: {{ .Values.websocket.host | replace "." "-" }}-tls
- {{ .Values.hostname }}
secretName: {{ .Values.hostname | replace "." "-" }}-tls
rules:
- host: {{ .Values.websocket.host }}
- host: {{ .Values.hostname }}
http:
paths:
- backend:
Expand Down
3 changes: 2 additions & 1 deletion charts/uptermd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ affinity: {}

host_keys: {}

hostname: my-upterm-host

# Require ingress-nginx & cert-manager
websocket:
enabled: false
host: my-upterm-host
cert_manager_acme_email: your_email
ingress_nginx_ingress_class: nginx
2 changes: 1 addition & 1 deletion terraform/digitalocean/k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ locals {
minReplicas = 2
maxReplicas = 5
}
hostname = var.uptermd_host
websocket = {
enabled = true
ingress_nginx_ingress_class = "upterm-nginx"
host = var.uptermd_host
cert_manager_acme_email = var.uptermd_acme_email
}
host_keys = {
Expand Down

0 comments on commit 2236989

Please sign in to comment.