add example
This commit is contained in:
19
example/templates/service.yaml
Normal file
19
example/templates/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
name: {{ .Release.Name }}-web
|
||||
targetPort: 8080
|
||||
- port: 5432
|
||||
protocol: TCP
|
||||
name: {{ .Release.Name }}-pg
|
||||
targetPort: 5432
|
||||
selector:
|
||||
app: {{ .Release.Name }} # This selects the pod(s) that match the selector
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user