Skip to content

Commit

Permalink
Merge pull request #11 from Onlineberatung/OB-IntegritychecksTools
Browse files Browse the repository at this point in the history
feat: added service ability for tools
  • Loading branch information
web-mi authored May 12, 2023
2 parents 637174b + a1944c2 commit 52c4e92
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
42 changes: 42 additions & 0 deletions charts/integritychecks/templates/integritychecks-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{- $namespace := .Values.namespace | default "default" }}
{{- $release_name := .Release.Name }}
{{- range $service := .Values.services -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: integritychecks-{{ $service.name }}
namespace: {{ $namespace }}
labels:
io.kompose.service: integritychecks-{{ $service.name }}
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: integritychecks-{{ $service.name }}
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.network/database_network: "true"
io.kompose.network/frontend_network: "true"
io.kompose.network/service_network: "true"
io.kompose.service: integritychecks-{{ $service.name }}
spec:
containers:
- name: integritychecks-{{ $service.name }}
ports:
- containerPort: {{ $service.port }}
image: {{ $service.image }}:{{ $service.version }}
imagePullPolicy: Always
resources: {}
envFrom:
- configMapRef:
name: integritychecks-{{ $release_name }}-config
- secretRef:
name: integritychecks-{{ $release_name }}-secret
imagePullSecrets:
- name: registry-secret
restartPolicy: Always
{{- end -}}
20 changes: 20 additions & 0 deletions charts/integritychecks/templates/integritychecks-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- $namespace := .Values.namespace | default "default" }}
{{- $release_name := .Release.Name }}
{{- range $service := .Values.services -}}
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: integritychecks-{{ $service.name }}
name: integritychecks-{{ $service.name }}
spec:
ports:
- name: integritychecks-{{ $service.name }}-{{ $service.port }}
port: {{ $service.port }}
targetPort: {{ $service.port }}
selector:
io.kompose.service: integritychecks-{{ $service.name }}
status:
loadBalancer: {}
{{- end -}}
1 change: 1 addition & 0 deletions charts/integritychecks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ verbosity: 0
force: 'false'
logPath:
jobs: []
services: []
mysql:
user: 'root'
password: 'root'
Expand Down

0 comments on commit 52c4e92

Please sign in to comment.