You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2020/07/31 07:40:45 UTC
[trafficserver-ingress-controller] branch master updated: Helm
support (#32)
This is an automated email from the ASF dual-hosted git repository.
kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new a966d9c Helm support (#32)
a966d9c is described below
commit a966d9c8604bc380e7c009467509ed8ad6f0e5ed
Author: Rishabh Chhabra <ri...@gmail.com>
AuthorDate: Fri Jul 31 02:40:37 2020 -0500
Helm support (#32)
* Adds helm chart
* Adds license
* Adds TODO
* Converts exporter image to a value
* Converts fluentd to a value
* Moves default regex to a value and makes ats configmap a post install hook
* Changes namespace in TODO
* Adds how to host to todo
* Modifies instruction in TODO
* Changes license in TODO
---
charts/TODO.md | 51 +++++++++
charts/ats-ingress/.helmignore | 23 ++++
charts/ats-ingress/Chart.yaml | 39 +++++++
charts/ats-ingress/templates/_helpers.tpl | 67 ++++++++++++
charts/ats-ingress/templates/ats-configmap.yaml | 27 +++++
charts/ats-ingress/templates/deployment.yaml | 88 +++++++++++++++
.../ats-ingress/templates/fluentd-configmap.yaml | 44 ++++++++
charts/ats-ingress/templates/rbac.yaml | 51 +++++++++
charts/ats-ingress/templates/secret.yaml | 28 +++++
charts/ats-ingress/templates/service.yaml | 50 +++++++++
charts/ats-ingress/values.yaml | 121 +++++++++++++++++++++
11 files changed, 589 insertions(+)
diff --git a/charts/TODO.md b/charts/TODO.md
new file mode 100644
index 0000000..e46e10b
--- /dev/null
+++ b/charts/TODO.md
@@ -0,0 +1,51 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+# TODO for Helm support
+Helm support for ATS Ingress Controller is still under development and can only be used locally after building the following docker images:
+- ats_alpine
+- tsexporter
+
+After building the above images, do the following to install ATS Ingress using Helm:
+1. `$ kubectl create namespace ats-ingress`
+ - Create the namespace where the ingress controller will be installed
+2. To install the ingress controller in the namespace created in step 1, create a file named `override.yaml` which contains the following two values:
+```yaml
+tls:
+ crt: <TLS certificate>
+ key: <TLS key>
+```
+and then:
+`$ helm install -f override.yaml charts/ats-ingress --generate-name -n ats-ingress`
+
+## TODO for enabling Helm
+- [ ] Upload ats_alpine docker image to a public repository and make corresponding changes to `image.repository` value in values.yaml
+- [ ] Upload trafficserver-exporter docker image to a public repository and make corresponding changes to `ats.exporter.image.repository` value in values.yaml
+- [ ] Hosting the helm chart on a public domain.
+
+### Hosting the helm chart
+
+From the [chart repository guide](https://helm.sh/docs/topics/chart_repository/):
+> A chart repository is an HTTP server that houses an `index.yaml` file and optionally some packaged charts.
+
+This can be done in two ways, we can either use our own web server or a cloud storage option like Google Cloud Storage bucket, Amazon S3 bucket, or Github Pages. The chart repository would consist of our packaged chart, a provenance file and a special file called index.yaml which contains an index of all of the charts in the repository. Read the [chart repository guide](https://helm.sh/docs/topics/chart_repository/) for an in-depth explanation of what these are.
+
+The chart is located at `charts/ats-ingress` and the `index.yaml` file can be generated using the command `$ helm repo index`. The [chart repository guide](https://helm.sh/docs/topics/chart_repository/) details everything that needs to be done.
+
+Helm has created a tool that can easily help us turn out Github repo self-host our own charts using Github Pages. Read more about the tool here. [Chart Releaser](https://github.com/helm/chart-releaser). Chart releaser can be also be used to generate the necessary files and host the same files on any another cloud storage solution if Github Pages is not an option.
\ No newline at end of file
diff --git a/charts/ats-ingress/.helmignore b/charts/ats-ingress/.helmignore
new file mode 100644
index 0000000..0e8a0eb
--- /dev/null
+++ b/charts/ats-ingress/.helmignore
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/charts/ats-ingress/Chart.yaml b/charts/ats-ingress/Chart.yaml
new file mode 100644
index 0000000..e1ed116
--- /dev/null
+++ b/charts/ats-ingress/Chart.yaml
@@ -0,0 +1,39 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v2
+name: ats-ingress
+description: A Helm chart for Kubernetes
+
+# A chart can be either an 'application' or a 'library' chart.
+#
+# Application charts are a collection of templates that can be packaged into versioned archives
+# to be deployed.
+#
+# Library charts provide useful utilities or functions for the chart developer. They're included as
+# a dependency of application charts to inject those utilities and functions into the rendering
+# pipeline. Library charts do not define any templates and therefore cannot be deployed.
+type: application
+
+# This is the chart version. This version number should be incremented each time you make changes
+# to the chart and its templates, including the app version.
+# Versions are expected to follow Semantic Versioning (https://semver.org/)
+version: 0.1.0
+
+# This is the version number of the application being deployed. This version number should be
+# incremented each time you make changes to the application. Versions are not expected to
+# follow Semantic Versioning. They should reflect the version the application is using.
+appVersion: 1.16.0
diff --git a/charts/ats-ingress/templates/_helpers.tpl b/charts/ats-ingress/templates/_helpers.tpl
new file mode 100644
index 0000000..caeae2c
--- /dev/null
+++ b/charts/ats-ingress/templates/_helpers.tpl
@@ -0,0 +1,67 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "ats-ingress.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "ats-ingress.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "ats-ingress.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "ats-ingress.labels" -}}
+helm.sh/chart: {{ include "ats-ingress.chart" . }}
+{{ include "ats-ingress.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "ats-ingress.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "ats-ingress.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
diff --git a/charts/ats-ingress/templates/ats-configmap.yaml b/charts/ats-ingress/templates/ats-configmap.yaml
new file mode 100644
index 0000000..cf825da
--- /dev/null
+++ b/charts/ats-ingress/templates/ats-configmap.yaml
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ namespace: {{ .Release.Namespace }}
+ name: ats
+ annotations:
+ "helm.sh/hook": post-install
+ "helm.sh/hook-weight": "0"
+ "helm.sh/hook-delete-policy": before-hook-creation
+data:
+ # reloadable data only
+ proxy.config.log.logfile_dir: {{ .Values.ats.log.dir | quote }}
\ No newline at end of file
diff --git a/charts/ats-ingress/templates/deployment.yaml b/charts/ats-ingress/templates/deployment.yaml
new file mode 100644
index 0000000..a95d692
--- /dev/null
+++ b/charts/ats-ingress/templates/deployment.yaml
@@ -0,0 +1,88 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "ats-ingress.fullname" . }}
+ namespace: {{ .Release.Namespace }}
+ labels:
+ {{- include "ats-ingress.labels" . | nindent 4 }}
+spec:
+ minReadySeconds: 30
+
+ # DO NOT EXCEED ONE COPY
+ replicas: 1
+ # DO NOT EXCEED ONE COPY
+
+ selector:
+ matchLabels:
+ {{- include "ats-ingress.selectorLabels" . | nindent 6 }}
+ template:
+ metadata:
+ labels:
+ {{- include "ats-ingress.selectorLabels" . | nindent 8 }}
+ spec:
+ containers:
+ - name: {{ .Chart.Name }}
+ image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ volumeMounts:
+ - mountPath: {{ .Values.ats.ssl.path | quote }}
+ name: {{ .Values.ats.ssl.name }}
+ readOnly: true
+ - name: varlog
+ mountPath: {{ .Values.ats.log.dir }}
+ env:
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: POD_TLS_PATH
+ value: {{ .Values.ats.ssl.path | quote }}
+ ports:
+ - containerPort: 80
+ hostPort: 80
+ name: http
+ protocol: TCP
+ - containerPort: 443
+ hostPort: 443
+ name: https
+ protocol: TCP
+ - name: {{ .Values.collector.name }}
+ image: {{ .Values.collector.image.repository }}:{{ .Values.collector.image.tag }}
+ volumeMounts:
+ - name: varlog
+ mountPath: {{ .Values.collector.path | quote }}
+ - name: config-volume
+ mountPath: {{ .Values.collector.fluentdConfigPath | quote }}
+ - name: {{ .Values.ats.exporter.name }}
+ image: {{ .Values.ats.exporter.image.repository }}:{{ .Values.ats.exporter.image.tag }}
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - containerPort: {{ .Values.ats.exporter.service.port }}
+ volumes:
+ - name: {{ .Values.ats.ssl.name }}
+ secret:
+ secretName: {{ .Values.ats.ssl.secret }}
+ - name: varlog
+ emptyDir: {}
+ - name: config-volume
+ configMap:
+ name: fluentd-config
diff --git a/charts/ats-ingress/templates/fluentd-configmap.yaml b/charts/ats-ingress/templates/fluentd-configmap.yaml
new file mode 100644
index 0000000..ff52bca
--- /dev/null
+++ b/charts/ats-ingress/templates/fluentd-configmap.yaml
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: fluentd-config
+ namespace: {{ .Release.Namespace }}
+ annotations:
+ "helm.sh/hook": pre-install
+ "helm.sh/hook-weight": "0"
+ "helm.sh/hook-delete-policy": before-hook-creation
+data:
+ fluent.conf: |
+ <source>
+ type tail
+ path {{ .Values.collector.path }}/squid.log
+ pos_file {{ .Values.collector.path }}/squid.log.pos
+ <parse>
+ @type regexp
+ expression {{ .Values.collector.parse.defaultRegex }}
+ </parse>
+ tag trafficserver.access
+ </source>
+
+ <match **>
+ @type stdout
+ </match>
+
+ <match fluent.**>
+ @type null
+ </match>
\ No newline at end of file
diff --git a/charts/ats-ingress/templates/rbac.yaml b/charts/ats-ingress/templates/rbac.yaml
new file mode 100644
index 0000000..7dc0429
--- /dev/null
+++ b/charts/ats-ingress/templates/rbac.yaml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: ClusterRole
+metadata:
+ name: {{ include "ats-ingress.fullname" . }}
+rules:
+- apiGroups:
+ - '*'
+ resources:
+ - ingresses
+ - secrets
+ - services
+ - pods
+ - namespaces
+ - replicationcontrollers
+ - endpoints
+ - configmaps
+ verbs:
+ - get
+ - list
+ - watch
+
+---
+
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: ClusterRoleBinding
+metadata:
+ name: {{ include "ats-ingress.fullname" . }}
+subjects:
+- kind: ServiceAccount
+ name: default
+ namespace: {{ .Release.Namespace }}
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: {{ include "ats-ingress.fullname" . }}
+
diff --git a/charts/ats-ingress/templates/secret.yaml b/charts/ats-ingress/templates/secret.yaml
new file mode 100644
index 0000000..ac16262
--- /dev/null
+++ b/charts/ats-ingress/templates/secret.yaml
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: v1
+data:
+ tls.crt: {{ .Values.tls.crt }}
+ tls.key: {{ .Values.tls.key }}
+kind: Secret
+metadata:
+ name: {{ .Values.ats.ssl.secret }}
+ namespace: {{ .Release.Namespace }}
+ annotations:
+ "helm.sh/hook": pre-install
+ "helm.sh/hook-weight": "-1"
+ "helm.sh/hook-delete-policy": before-hook-creation
+type: kubernetes.io/tls
\ No newline at end of file
diff --git a/charts/ats-ingress/templates/service.yaml b/charts/ats-ingress/templates/service.yaml
new file mode 100644
index 0000000..94b8d87
--- /dev/null
+++ b/charts/ats-ingress/templates/service.yaml
@@ -0,0 +1,50 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "ats-ingress.fullname" . }}
+ namespace: {{ .Release.Namespace }}
+ labels:
+ {{- include "ats-ingress.labels" . | nindent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - name: http
+ port: {{ .Values.service.http.port }}
+ protocol: TCP
+ targetPort: {{ .Values.service.http.targetPort }}
+ nodePort: {{ .Values.service.http.nodePort }}
+ - name: https
+ port: {{ .Values.service.https.port }}
+ protocol: TCP
+ targetPort: {{ .Values.service.https.targetPort }}
+ nodePort: {{ .Values.service.https.nodePort }}
+ selector:
+ {{- include "ats-ingress.selectorLabels" . | nindent 4 }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ .Values.ats.exporter.service.name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ type: {{ .Values.ats.exporter.service.type }}
+ ports:
+ - port: 80
+ targetPort: {{ .Values.ats.exporter.service.port }}
+ selector:
+ {{- include "ats-ingress.selectorLabels" . | nindent 4 }}
\ No newline at end of file
diff --git a/charts/ats-ingress/values.yaml b/charts/ats-ingress/values.yaml
new file mode 100644
index 0000000..703e371
--- /dev/null
+++ b/charts/ats-ingress/values.yaml
@@ -0,0 +1,121 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Default values for ats-ingress.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+replicaCount: 1
+
+image:
+ repository: ats_alpine
+ pullPolicy: IfNotPresent
+ # Overrides the image tag whose default is the chart appVersion.
+ tag: latest
+
+imagePullSecrets: []
+nameOverride: ""
+fullnameOverride: ""
+
+serviceAccount:
+ # Specifies whether a service account should be created
+ create: true
+ # Annotations to add to the service account
+ annotations: {}
+ # The name of the service account to use.
+ # If not set and create is true, a name is generated using the fullname template
+ name: ""
+
+podAnnotations: {}
+
+podSecurityContext: {}
+ # fsGroup: 2000
+
+securityContext: {}
+ # capabilities:
+ # drop:
+ # - ALL
+ # readOnlyRootFilesystem: true
+ # runAsNonRoot: true
+ # runAsUser: 1000
+
+service:
+ type: NodePort
+ http:
+ port: 80
+ targetPort: 80
+ nodePort: 30000
+ https:
+ port: 443
+ targetPort: 443
+ nodePort: 30043
+
+
+resources: {}
+ # We usually recommend not to specify default resources and to leave this as a conscious
+ # choice for the user. This also increases chances charts run on environments with little
+ # resources, such as Minikube. If you do want to specify resources, uncomment the following
+ # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ # requests:
+ # cpu: 100m
+ # memory: 128Mi
+
+autoscaling:
+ enabled: false
+ minReplicas: 1
+ maxReplicas: 100
+ targetCPUUtilizationPercentage: 80
+ # targetMemoryUtilizationPercentage: 80
+
+nodeSelector: {}
+
+tolerations: []
+
+affinity: {}
+
+ats:
+ ssl:
+ path: "/etc/ats/ssl"
+ name: ats-ssl
+ secret: tls-secret
+ log:
+ dir: /usr/local/var/log/trafficserver
+ exporter:
+ name: trafficserver-exporter
+ image:
+ repository: tsexporter
+ tag: latest
+ service:
+ name: ats-stats-exporter
+ port: 9122
+ type: ClusterIP
+
+collector:
+ name: log-collector
+ path: "/var/log"
+ fluentdConfigPath: "/fluentd/etc"
+ image:
+ repository: fluent/fluentd
+ tag: v1.6-debian-1
+ parse:
+ defaultRegex: ^(?<timestamp>[^ ]*)\s(?<processing_time>[^ ]*)\s(?<client_ip>[^ ]*)\s(?<cache_result>[^ ]*)\s(?<response_length>[^ ]*)\s(?<request_method>[^ ]*)\s(?<url>[^ ]*)\s(?<username_authenticated_client>[^ ]*)\s(?<heirarchy_route>[^ ]*)\s(?<content_type>[^ ]*)$
+
+tls:
+ crt:
+ key:
\ No newline at end of file