changes to the ingresses
This commit is contained in:
parent
8a1f144a52
commit
79a22afb98
5 changed files with 8 additions and 166 deletions
|
@ -1,54 +1,3 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: helloworld-deployment
|
||||
labels:
|
||||
app: helloworld
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: helloworld
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: helloworld
|
||||
spec:
|
||||
containers:
|
||||
- name: helloworld
|
||||
image: testcontainers/helloworld
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: helloworld-service
|
||||
spec:
|
||||
selector:
|
||||
app: helloworld
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: helloworld-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: "lb1.yolokube.de"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: helloworld-service
|
||||
port:
|
||||
number: 80
|
||||
############### Test
|
||||
---
|
||||
apiVersion: v1
|
||||
|
@ -99,7 +48,7 @@ metadata:
|
|||
namespace: aaron-test
|
||||
spec:
|
||||
rules:
|
||||
- host: "test1.apps.yolokube.de"
|
||||
- host: "test.apps.yolokube.de"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
|
@ -109,57 +58,3 @@ spec:
|
|||
name: test1-service
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test2-deployment
|
||||
namespace: aaron-test
|
||||
labels:
|
||||
app: test2
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test2
|
||||
spec:
|
||||
containers:
|
||||
- name: test2
|
||||
image: testcontainers/helloworld
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: test2-service
|
||||
namespace: aaron-test
|
||||
spec:
|
||||
selector:
|
||||
app: test2
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: test2-ingress
|
||||
namespace: aaron-test
|
||||
spec:
|
||||
rules:
|
||||
- host: "test2.apps.yolokube.de"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: test2-service
|
||||
port:
|
||||
number: 80
|
Loading…
Add table
Add a link
Reference in a new issue