Hexo-Async-Offends/chart/templates/service.yaml
offends 05264b2511
Some checks reported errors
continuous-integration/drone Build was killed
synchronization
2024-07-19 15:47:10 +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 }}