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

14 lines
205 B
YAML
Raw Normal View History

2022-12-15 23:23:50 +00:00
apiVersion: v1
kind: Service
metadata:
name: k8s-poc-nginx-service
spec:
type: LoadBalancer
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