Skip to content

Commit

Permalink
wip(charts): refactor simple deployment charts to used the common one #…
Browse files Browse the repository at this point in the history
…281  [pack]
  • Loading branch information
cnouguier committed Feb 4, 2022
1 parent 2391d59 commit 1355624
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 117 deletions.
5 changes: 5 additions & 0 deletions charts/k2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ spec:
{{- if .Values.dataSubPath }}
subPath: {{ include "common.tplvalues.render" ( dict "value" .Values.dataSubPath "context" $ ) }}
{{- end }}
readinessProbe:
tcpSocket:
port: {{ include "common.names.name" . }}
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthcheck
Expand Down
40 changes: 1 addition & 39 deletions charts/kapture/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
{{- end }}
spec:
containers:
- name: {{ include "common.names.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "common.environment.render" (dict "env" .Values.env "context" $) | indent 12 }}
ports:
- name: {{ include "common.names.name" . }}
containerPort: 3000
livenessProbe:
httpGet:
path: /healthcheck
port: {{ include "common.names.name" . }}
initialDelaySeconds: 30
periodSeconds: 15

{{- include "common.service" . }}
6 changes: 6 additions & 0 deletions charts/kapture/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ service:
port: 3000
annotations: {}

# containerPort is the port used by the the container
containerPort: 3000

# livenessEndpoint is the endpoint to check the pod liveness
livenessEndpoint: /healthcheck

env:
# bodyLimit sets the size limit of the request body
bodyLimit: "100kb"
Expand Down
3 changes: 2 additions & 1 deletion charts/maputnik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ ingress:
enabled: true
className: nginx


# containerPort is the port used by the the container
containerPort: 8088
39 changes: 1 addition & 38 deletions charts/mongo-express/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
{{- end }}
spec:
containers:
- name: {{ include "common.names.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "common.environment.render" (dict "env" .Values.env "context" $) | indent 12 }}
ports:
- name: {{ include "common.names.name" . }}
containerPort: 8081
livenessProbe:
httpGet:
path: /
port: {{ include "common.names.name" . }}
initialDelaySeconds: 30
periodSeconds: 15
{{- include "common.deployment" . }}
3 changes: 3 additions & 0 deletions charts/mongo-express/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ingress:
enabled: true
className: nginx

# containerPort is the port used by the the container
containerPort: 8081

env:
# meConfigMongodbUrl specifies the mongodb connection string
meConfigMongodbUrl:
Expand Down
39 changes: 1 addition & 38 deletions charts/redis-commander/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
{{- end }}
spec:
containers:
- name: {{ include "common.names.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "common.environment.render" (dict "env" .Values.env "context" $) | indent 12 }}
ports:
- name: {{ include "common.names.name" . }}
containerPort: 8081
livenessProbe:
httpGet:
path: /favicon.png
port: {{ include "common.names.name" . }}
initialDelaySeconds: 30
periodSeconds: 15
{{- include "common.ingress" . }}
5 changes: 4 additions & 1 deletion charts/redis-commander/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ image:
service:
enabled: true
type: ClusterIP
port: 8081 # port on which we expose service
port: 8081
annotations: {}

ingress:
enabled: true
className: nginx

# containerPort is the port used by the the container
containerPort: 8081

env:
# redisHosts specifies the redis connection string
redisHosts:
Expand Down

0 comments on commit 1355624

Please sign in to comment.