Kubernetes Lab 8 - Services
Solution
apiVersion: v1
kind: Service
metadata:
name: jedi-svc
spec:
type: NodePort
selector:
app: jedi
ports:
- protocol: TCP
port: 80
targetPort: 8080
apiVersion: v1
kind: Service
metadata:
name: yoda-svc
spec:
type: ClusterIP
selector:
app: yoda
ports:
- protocol: TCP
port: 80
targetPort: 8080