Grundgerüst Kubernetes Service YAML-Datei
apiVersion: v1
kind: Service
metadata:
name: <app-name>
namespace: <namespace name>
...
spec:
selector:
#Selektor definieren
app: <app-name>
ports:
- name: http
port: 80
targetPort: http (targetPort Namen aus dem Deployment)