Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TT-13326] - Adds sidecars #336

Merged
merged 3 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ spec:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
{{- with .Values.dashboard.extraContainers }}
{{- include "tyk-dashboard.tplvalues.render" (dict "value" . "context" $) | nindent 6 }}
{{- end }}
{{- if .Values.dashboard.securityContext }}
securityContext:
{{- toYaml .Values.dashboard.securityContext | nindent 10 }}
Expand Down
5 changes: 5 additions & 0 deletions components/tyk-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ dashboard:
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set extra environment variables to Tyk Dashboard pod.
# - name: TYK_DB_PAGESIZE
# value: "10"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ spec:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
{{- with .Values.extraContainers }}
{{- include "tyk-dev-portal.tplvalues.render" (dict "value" . "context" $) | nindent 6 }}
{{- end }}
volumes:
{{- if and (eq .Values.kind "Deployment") .Values.storage.persistence.mountExistingPVC }}
- name: dev-portal-pvc-{{ include "tyk-dev-portal.fullname" . }}
Expand Down
5 changes: 5 additions & 0 deletions components/tyk-dev-portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ tolerations: []
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set extra environment variables to Tyk Developer Portal pod.
# - name: PORTAL_REFRESHINTERVAL
# value: "10"
Expand Down
3 changes: 3 additions & 0 deletions components/tyk-gateway/templates/deployment-gw-repset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ spec:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
{{- with .Values.gateway.extraContainers }}
{{- include "tyk-gateway.tplvalues.render" (dict "value" . "context" $) | nindent 6 }}
{{- end }}
{{- if .Values.gateway.securityContext }}
securityContext:
{{- toYaml .Values.gateway.securityContext | nindent 10 }}
Expand Down
5 changes: 5 additions & 0 deletions components/tyk-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,11 @@ gateway:
# affinity for gateway pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
# value: "true"
Expand Down
3 changes: 3 additions & 0 deletions components/tyk-mdcb/templates/deployment-mdcb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ spec:
{{- if .Values.mdcb.extraEnvs }}
{{- include "mdcb.tplvalues.render" (dict "value" .Values.mdcb.extraEnvs "context" $) | nindent 12 }}
{{- end }}
{{- with .Values.mdcb.extraContainers }}
{{- include "mdcb.tplvalues.render" (dict "value" . "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.mdcb.tls.useSSL }}
- name: {{ .Values.mdcb.tls.volumeName }}
Expand Down
5 changes: 5 additions & 0 deletions components/tyk-mdcb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ mdcb:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

extraEnvs: []

# Additional volumes on the output MDCB Deployment definition.
Expand Down
3 changes: 3 additions & 0 deletions components/tyk-pump/templates/deployment-pmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ spec:
resources:
{{ toYaml .Values.pump.resources | indent 12 }}
{{- if .Values.pump.securityContext }}
{{- with .Values.pump.extraContainers }}
{{- include "tyk-pump.tplvalues.render" (dict "value" . "context" $) | nindent 6 }}
{{- end }}
securityContext:
{{- toYaml .Values.pump.securityContext | nindent 10 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions components/tyk-pump/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ pump:
# affinity for pump pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set environment variables in pump container
# - name: TYK_PMP_PURGEDELAY
# value: 30
Expand Down
26 changes: 26 additions & 0 deletions tyk-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,11 @@
# Regular expressions and parameterized routes will be left alone regardless of this setting.
enableStrictRoutes: true

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
# value: "true"
Expand Down Expand Up @@ -811,6 +816,11 @@
# affinity for pump pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set environment variables in pump container
# - name: TYK_PMP_PURGEDELAY
# value: 30
Expand Down Expand Up @@ -1120,6 +1130,11 @@
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set extra environment variables to Tyk Dashboard pod.
# - name: TYK_DB_PAGESIZE
# value: "10"
Expand Down Expand Up @@ -1425,6 +1440,11 @@
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

extraEnvs: []

# Additional volumes on the output MDCB Deployment definition.
Expand Down Expand Up @@ -1606,6 +1626,12 @@
tolerations: []
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

Check failure on line 1633 in tyk-control-plane/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces

Check failure on line 1634 in tyk-control-plane/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces
# extraEnvs is used to set extra environment variables to Tyk Developer Portal pod.
# - name: PORTAL_REFRESHINTERVAL
# value: "10"
Expand Down
10 changes: 10 additions & 0 deletions tyk-data-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ tyk-gateway:
# affinity for gateway pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
# value: "true"
Expand Down Expand Up @@ -686,6 +691,11 @@ tyk-pump:
# affinity for pump pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set environment variables in pump container
# - name: TYK_PMP_PURGEDELAY
# value: 30
Expand Down
10 changes: 10 additions & 0 deletions tyk-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ tyk-gateway:
# Regular expressions and parameterized routes will be left alone regardless of this setting.
enableStrictRoutes: true

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
# value: "true"
Expand Down Expand Up @@ -722,6 +727,11 @@ tyk-pump:
# affinity for pump pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set environment variables in pump container
# - name: TYK_PMP_PURGEDELAY
# value: 30
Expand Down
21 changes: 21 additions & 0 deletions tyk-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ tyk-gateway:
# Regular expressions and parameterized routes will be left alone regardless of this setting.
enableStrictRoutes: true

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
# value: "true"
Expand Down Expand Up @@ -812,6 +817,11 @@ tyk-pump:
# affinity for pump pod assignment
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set environment variables in pump container
# - name: TYK_PMP_PURGEDELAY
# value: 30
Expand Down Expand Up @@ -1119,6 +1129,11 @@ tyk-dashboard:
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set extra environment variables to Tyk Dashboard pod.
# - name: TYK_DB_PAGESIZE
# value: "10"
Expand Down Expand Up @@ -1327,6 +1342,12 @@ tyk-dev-portal:
tolerations: []
# affinity specifies affinity and anti-affinity constraints.
affinity: {}

# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

# extraEnvs is used to set extra environment variables to Tyk Developer Portal pod.
# - name: PORTAL_REFRESHINTERVAL
# value: "10"
Expand Down
Loading