helm chart changes to support extra volume mounts and autoscaling option (#75)
diff --git a/charts/ats-ingress/templates/deployment.yaml b/charts/ats-ingress/templates/deployment.yaml
index 4e307b3..49e5d28 100644
--- a/charts/ats-ingress/templates/deployment.yaml
+++ b/charts/ats-ingress/templates/deployment.yaml
@@ -30,7 +30,9 @@
spec:
minReadySeconds: {{ .Values.controller.minReadySeconds }}
+ {{- if not .Values.controller.autoscaling.enabled }}
replicas: {{ .Values.controller.replicaCount }}
+ {{- end }}
selector:
matchLabels:
@@ -83,24 +85,28 @@
- {{ . }}
{{- end }}
volumeMounts:
- - mountPath: {{ .Values.controller.ssl.path | quote }}
- name: {{ .Values.controller.ssl.name }}
- readOnly: true
- - name: log-trafficserver
- mountPath: {{ .Values.controller.log.trafficserver.dir }}
- - name: log-ingress
- mountPath: {{ .Values.controller.log.ingress.dir }}
+ - mountPath: {{ .Values.controller.ssl.path | quote }}
+ name: {{ .Values.controller.ssl.name }}
+ readOnly: true
+ - name: log-trafficserver
+ mountPath: {{ .Values.controller.log.trafficserver.dir }}
+ - name: log-ingress
+ mountPath: {{ .Values.controller.log.ingress.dir }}
+ {{- range .Values.controller.extraVolumeMounts }}
+ - name: {{ .key }}
+ value: {{ .value }}
+ {{- end }}
env:
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: POD_TLS_PATH
- value: {{ .Values.controller.ssl.path | quote }}
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: POD_TLS_PATH
+ value: {{ .Values.controller.ssl.path | quote }}
{{- range .Values.controller.extraEnvs }}
- name: {{ .name }}
value: {{ .value }}
diff --git a/charts/ats-ingress/values.yaml b/charts/ats-ingress/values.yaml
index 46f9341..2bc6f05 100644
--- a/charts/ats-ingress/values.yaml
+++ b/charts/ats-ingress/values.yaml
@@ -107,6 +107,9 @@
loadBalancerSourceRanges: []
replicaCount: 1
+
+ autoscaling:
+ enabled: false
## SSL certificate information
ssl:
@@ -142,6 +145,9 @@
## Volumes required by additional containers
extraVolumes: []
+ ## Volume Mounts
+ extraVolumeMounts: []
+
## Init Containers
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
initContainers: []
diff --git a/docs/ats-ingress-0.1.0.tgz b/docs/ats-ingress-0.1.0.tgz
index b659a53..f8bbdd5 100644
--- a/docs/ats-ingress-0.1.0.tgz
+++ b/docs/ats-ingress-0.1.0.tgz
Binary files differ
diff --git a/docs/index.yaml b/docs/index.yaml
index 4ff94a9..63ccbac 100644
--- a/docs/index.yaml
+++ b/docs/index.yaml
@@ -3,12 +3,12 @@
ats-ingress:
- apiVersion: v2
appVersion: 0.1.0
- created: "2020-12-04T16:32:09.3516-08:00"
+ created: "2020-12-28T17:29:22.262073-08:00"
description: A Helm chart for Kubernetes
- digest: 0fba84900e7381643d871faa16a08e9120f232d9d2c7ed440946ddfe9c8b2f33
+ digest: d458a35b776a5a40cbe92b8a40de059ff0209d4112871747db54228ba6602b1c
name: ats-ingress
type: application
urls:
- https://apache.github.io/trafficserver-ingress-controller/ats-ingress-0.1.0.tgz
version: 0.1.0
-generated: "2020-12-04T16:32:09.35058-08:00"
+generated: "2020-12-28T17:29:22.260306-08:00"