update
diff --git a/charts/url-shortener/templates/install.yaml b/charts/url-shortener/templates/install.yaml
index d06ccdd..469bcc8 100644
--- a/charts/url-shortener/templates/install.yaml
+++ b/charts/url-shortener/templates/install.yaml
@@ -8,10 +8,10 @@
selector:
app: url-shortener
ports:
- - name: {{ .Values.portName }}
+ - name: http
protocol: TCP
- port: 80
- targetPort: {{ .Values.portName }}
+ port: {{ .Values.port }}
+ targetPort: http
---
apiVersion: apps/v1
kind: Deployment
@@ -32,12 +32,12 @@
- name: url-shortener
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
ports:
- - name: {{ .Values.portName }}
- containerPort: 8080
+ - name: http
+ containerPort: {{ .Values.port }}
protocol: TCP
command:
- url-shortener
- - --port=8080
+ - --port={{ .Values.port }}
- --db-path=/data/urls.db
- --require-auth={{ .Values.requireAuth }}
volumeMounts:
diff --git a/charts/url-shortener/values.yaml b/charts/url-shortener/values.yaml
index c9dd02e..8027160 100644
--- a/charts/url-shortener/values.yaml
+++ b/charts/url-shortener/values.yaml
@@ -3,5 +3,5 @@
tag: latest
pullPolicy: Always
persistentVolumeClaimName: "data"
-portName: http
+port: 8080
requireAuth: false