Skip to content

Commit

Permalink
feat(chart): Streamlines some chart things (#313)
Browse files Browse the repository at this point in the history
This adds a few changes to the chart and adds support for host labels

Signed-off-by: Taylor Thomas <[email protected]>
  • Loading branch information
thomastaylor312 authored Dec 8, 2021
1 parent f6f93a2 commit 67905d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wasmcloud_host/chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1. Get the application URL by running these commands:
1. You can access the wasmCloud dashboard with the following steps:
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "wasmcloud_host.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
Expand Down
6 changes: 4 additions & 2 deletions wasmcloud_host/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ spec:
name: {{ include "wasmcloud_host.fullname" . }}
key: registryPassword
{{- end }}
{{- range $k, $v := .Values.wasmcloud.config.hostLabels }}
- name: HOST_{{ $k }}
value: {{ $v | quote }}
{{- end }}
ports:
- name: host
containerPort: 8080
- name: washboard
containerPort: 4000
protocol: TCP
Expand Down
4 changes: 4 additions & 0 deletions wasmcloud_host/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ wasmcloud:
registry:
username: ""
password: ""
# A map of key value pairs to use as wasmCloud Host labels. These map to environment variable
# names, so the `.` character is not allowed
hostLabels:
kubernetes: "true"
image:
repository: wasmcloud/wasmcloud_host
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 67905d2

Please sign in to comment.