2024-09-19 17:59:02 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-09-22 09:14:23 +00:00
|
|
|
name: whoami-nodeport
|
|
|
|
namespace: whoami
|
2024-09-19 17:59:02 +00:00
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 80
|
|
|
|
nodePort: 31338
|
|
|
|
selector:
|
|
|
|
app: whoami
|
2024-09-22 09:14:23 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami-loadbalancer
|
|
|
|
namespace: whoami
|
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 80
|
|
|
|
selector:
|
|
|
|
app: whoami
|