sample-service/k8s/service.yml

16 lines
272 B
YAML
Raw Normal View History

2021-08-11 14:40:05 +02:00
apiVersion: v1
kind: Service
metadata:
2021-08-11 16:43:08 +02:00
name: sample-service
2021-08-11 14:40:05 +02:00
namespace: birbnetes
labels:
2021-08-11 16:43:08 +02:00
app: sample-service
2021-08-11 14:40:05 +02:00
spec:
ports:
2021-08-11 16:43:08 +02:00
- name: sample-service
2021-08-11 14:40:05 +02:00
port: 80
targetPort: 8080
protocol: TCP
selector:
2021-08-11 16:43:08 +02:00
app: sample-service
2021-08-11 14:40:05 +02:00
type: ClusterIP