mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 01:44:22 -05:00
35 lines
633 B
YAML
35 lines
633 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: whoami-internal
|
||
|
namespace: lb-test
|
||
|
spec:
|
||
|
selector:
|
||
|
app: whoami
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: 80
|
||
|
type: NodePort
|
||
|
|
||
|
---
|
||
|
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
namespace: lb-test
|
||
|
name: whoami
|
||
|
annotations:
|
||
|
alb.ingress.kubernetes.io/scheme: internet-facing
|
||
|
alb.ingress.kubernetes.io/target-type: instance
|
||
|
spec:
|
||
|
ingressClassName: alb
|
||
|
rules:
|
||
|
- http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: whoami-internal
|
||
|
port:
|
||
|
number: 80
|