feat: add helm chart for deploying the app on k8s
This commit is contained in:
parent
aaa1eff0fe
commit
cbaa5272ef
13 changed files with 261 additions and 0 deletions
15
deploy/k8s/templates/service.yaml
Normal file
15
deploy/k8s/templates/service.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port.number }}
|
||||
targetPort: {{ .Values.service.port.name }}
|
||||
protocol: TCP
|
||||
name: {{ .Values.service.port.name }}
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/component: "backend-api"
|
||||
Reference in a new issue