basic ingress
apiVersion: v1
kind: Service
metadata:
- name: web
namespace: default
+ name: secret-challenge
+ labels:
+ app: secret-challenge
spec:
+ type: NodePort
ports:
- - port: 8080
- protocol: TCP
+ - port: 80
targetPort: 8080
+ protocol: TCP
selector:
- run: web
- type: NodePort
+ app: secret-challenge
---
apiVersion: networking.k8s.io/v1
kind: Ingress
@@ -19,6 +21,8 @@ metadata:
spec:
defaultBackend:
service:
- name: web
+ name: secret-challenge
+ labels:
port:
- number: 8080
+ number: 80
+
