Hexo-Async-Offends/chart/templates/service.yaml
offends f81564f8a0
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-07-19 12:43:24 +08:00

41 lines
1.1 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ .Values.deployment.blog.name }}
spec:
selector:
app: {{ .Values.deployment.blog.labels.app }}
ports:
- name: {{ .Values.deployment.blog.name }}
protocol: TCP
port: {{ .Values.blog.port }}
targetPort: {{ .Values.blog.targetPort }}
type: {{ .Values.blog.type }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.deployment.blog_gateway.name }}
spec:
selector:
app: {{ .Values.deployment.blog_gateway.labels.app }}
ports:
- name: {{ .Values.deployment.blog_gateway.name }}
protocol: TCP
port: {{ .Values.blog_gateway.port }}
targetPort: {{ .Values.blog_gateway.targetPort }}
type: {{ .Values.blog_gateway.type }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.statefulset.blog_twikoo.name }}
spec:
selector:
app: {{ .Values.statefulset.blog_twikoo.labels.app }}
ports:
- name: {{ .Values.statefulset.blog_twikoo.name }}
protocol: TCP
port: {{ .Values.blog_twikoo.port }}
targetPort: {{ .Values.blog_twikoo.targetPort }}
type: {{ .Values.blog_twikoo.type }}