2024-09-19 17:59:02 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-09-22 11:12:27 +00:00
|
|
|
name: whoami
|
2024-09-19 17:59:02 +00:00
|
|
|
spec:
|
|
|
|
ports:
|
2024-09-22 11:37:14 +00:00
|
|
|
- name: web
|
|
|
|
port: 80
|
|
|
|
targetPort: web
|
2024-09-19 17:59:02 +00:00
|
|
|
selector:
|
|
|
|
app: whoami
|
2024-09-22 12:06:26 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
2024-09-23 18:30:08 +00:00
|
|
|
metadata:
|
|
|
|
name: whoami-np
|
|
|
|
namespace: whoami
|
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
- nodePort: 30007
|
|
|
|
port: 80
|
|
|
|
targetPort: 80
|
|
|
|
selector:
|
|
|
|
app: whoami
|