k8s-training-app/01_nginx/yaml/03_service.yaml

16 lines
193 B
YAML
Raw Normal View History

2020-01-08 10:14:17 +01:00
---
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
type: ClusterIP
# vim: set ts=2 sw=2 et: