c12s-application-set/deploy/k8s-poc-demo/base/service.yaml

14 lines
202 B
YAML
Raw Permalink Normal View History

2022-12-15 23:23:50 +00:00
apiVersion: v1
kind: Service
metadata:
name: k8s-poc-nginx-service
spec:
2022-12-20 16:44:16 +00:00
type: ClusterIP
2022-12-15 23:23:50 +00:00
selector:
2022-12-16 02:29:49 +00:00
app: k8s-poc-nginx
2022-12-15 23:23:50 +00:00
ports:
- port: 80
targetPort: 80
name: http
protocol: TCP