2022-01-06 23:34:37 +08:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}
|
|
|
|
namespace: {{ .Values.nameSpace }}
|
|
|
|
annotations:
|
|
|
|
kubesphere.io/creator: drone
|
|
|
|
labels:
|
|
|
|
app: {{ .Release.Name }}
|
2022-01-09 22:13:56 +08:00
|
|
|
app.kubernetes.io/version: v1
|
|
|
|
app.kubernetes.io/name: {{ .Release.Name }}
|
|
|
|
version: v1
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
2022-01-06 23:34:37 +08:00
|
|
|
spec:
|
|
|
|
ports:
|
2022-01-09 22:13:56 +08:00
|
|
|
- name: http-{{ .Release.Name }}
|
2022-01-06 23:34:37 +08:00
|
|
|
protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: {{ .Values.port }}
|
|
|
|
selector:
|
|
|
|
app: {{ .Release.Name }}
|
|
|
|
type: ClusterIP
|
|
|
|
sessionAffinity: None
|
|
|
|
ipFamilies:
|
|
|
|
- IPv4
|
|
|
|
ipFamilyPolicy: SingleStack
|