nodeport
This commit is contained in:
1 parent
2413304c8a
commit
e95c09cee6
1 file changed
+16
-1
@@ -5,10 +5,25 @@ metadata:
|
|||||||
name: {{ .Release.Name }}
|
name: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{ .Release.Name }}/app: scrypted
|
{{ .Release.Name }}/app: z2m
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
{{ .Release.Name }}/app: z2m
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
nodePort: 30100
|
||||||
|
targetPort: 8080
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
Reference in new issue
Block a user