22 lines
452 B
YAML
22 lines
452 B
YAML
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ .Release.Name }}
|
||
|
namespace: {{ .Values.nameSpace }}
|
||
|
annotations:
|
||
|
kubesphere.io/creator: drone
|
||
|
labels:
|
||
|
app: {{ .Release.Name }}
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: grpc-{{ .Release.Name }}
|
||
|
protocol: TCP
|
||
|
port: 80
|
||
|
targetPort: {{ .Values.port }}
|
||
|
selector:
|
||
|
app: {{ .Release.Name }}
|
||
|
type: ClusterIP
|
||
|
sessionAffinity: None
|
||
|
ipFamilies:
|
||
|
- IPv4
|
||
|
ipFamilyPolicy: SingleStack
|