add example

This commit is contained in:
welld1
2020-06-02 21:17:11 -04:00
parent ac450483b3
commit 19d81fbc3f
8 changed files with 180 additions and 0 deletions

View 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