add isolated live development deployments
This commit is contained in:
19
dev/helm/templates/service.yaml
Normal file
19
dev/helm/templates/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- $instance := required "instance is required" .Values.instance -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name | quote }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name | quote }}
|
||||
app.kubernetes.io/instance: {{ $instance | quote }}
|
||||
dev.mancave.link/instance: {{ $instance | quote }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ .Chart.Name | quote }}
|
||||
dev.mancave.link/instance: {{ $instance | quote }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user