Skip to content

Commit

Permalink
wip: cadip mockup station
Browse files Browse the repository at this point in the history
  • Loading branch information
nleconte-csgroup committed Mar 14, 2024
1 parent 9b4ca7a commit 08bb804
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/mockup-station-cadip/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-{{ .Values.app.stationName }}-service-config
name: {{ .Release.Name }}-service-config
namespace: {{ .Values.namespace }}

data:
Expand Down
14 changes: 7 additions & 7 deletions charts/mockup-station-cadip/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: {{ .Release.Name }}-{{ .Values.app.stationName }}
name: {{ .Release.Name }}
namespace: {{ .Values.namespace }}
generation: 1
labels:
app: {{ .Release.Name }}-{{ .Values.app.stationName }}
app: {{ .Release.Name }}
annotations:
deployment.kubernetes.io/revision: '1'
spec:
selector:
matchLabels:
app: {{ .Release.Name }}-{{ .Values.app.stationName }}
app: {{ .Release.Name }}
replicas: {{ .Values.replicaCount }}
strategy:
type: RollingUpdate
Expand All @@ -20,14 +20,14 @@ spec:
maxUnavailable: 50%
template:
metadata:
name: {{ .Release.Name }}-{{ .Values.app.stationName }}
name: {{ .Release.Name }}
labels:
app: {{ .Release.Name }}-{{ .Values.app.stationName }}
app: {{ .Release.Name }}
type: {{ .Values.namespace }}
spec:
terminationGracePeriodSeconds: 30
containers:
- name: {{ .Release.Name }}-{{ .Values.app.stationName }}
- name: {{ .Release.Name }}
image: {{ .Values.image.registry }}/{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.PullPolicy }}
resources:
Expand Down Expand Up @@ -68,5 +68,5 @@ spec:
volumes:
- name: service-config-volume
configMap:
name: {{ .Release.Name }}-{{ .Values.app.stationName }}-service-config
name: {{ .Release.Name }}-service-config
revisionHistoryLimit: 10
8 changes: 4 additions & 4 deletions charts/mockup-station-cadip/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
kind: Service
apiVersion: v1
metadata:
name: {{ .Release.Name }}-{{ .Values.app.stationName }}-svc
name: {{ .Release.Name }}-svc
labels:
app: {{ .Release.Name }}-{{ .Values.app.stationName }}-svc
app: {{ .Release.Name }}-svc
spec:
selector:
app: {{ .Release.Name }}-{{ .Values.app.stationName }}
app: {{ .Release.Name }}
ports:
- name: {{ .Release.Name }}-{{ .Values.app.stationName }}-service
- name: {{ .Release.Name }}-service
protocol: TCP
port: {{ .Values.service.port }}
targetPort: {{ .Values.app.port }}

0 comments on commit 08bb804

Please sign in to comment.