mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-10-13 18:44:45 +02:00
「🏗️」 wip: should be working but pull limit is off for today
This commit is contained in:
36
p2/deploy/app-ingress.yml
Normal file
36
p2/deploy/app-ingress.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: app-ingress
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: app1.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: app1-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: app2.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: app2-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: app3.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: app3-service
|
||||||
|
port:
|
||||||
|
number: 80
|
@ -13,7 +13,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: app1
|
- name: app1
|
||||||
image: traefik/whoami
|
image: traefik/whoami:v1.11
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
command:
|
command:
|
11
p2/deploy/app1/app1-service.yml
Normal file
11
p2/deploy/app1/app1-service.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: app1-service
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: app1
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
@ -1,21 +1,22 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: app1-deployment
|
name: app2-deployment
|
||||||
labels:
|
|
||||||
app: app1
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: nginx
|
app: app2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nginx
|
app: app2
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: app2
|
||||||
image: nginx:1.14.2
|
image: traefik/whoami
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
command:
|
||||||
|
- --port=80
|
||||||
|
- --name=app-two
|
11
p2/deploy/app2/app2-service.yml
Normal file
11
p2/deploy/app2/app2-service.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: app2-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: app2
|
||||||
|
ports:
|
||||||
|
port: 80
|
||||||
|
tragetPort: 80
|
21
p2/deploy/app3/app3-deployment.yml
Normal file
21
p2/deploy/app3/app3-deployment.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: app3-deployment
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: app3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: app3
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: app3
|
||||||
|
image: traefik/whoami
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
command:
|
||||||
|
- --port=80
|
||||||
|
- --name=app-three
|
11
p2/deploy/app3/app3-service.yml
Normal file
11
p2/deploy/app3/app3-service.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: app3-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: app3
|
||||||
|
ports:
|
||||||
|
port: 80
|
||||||
|
tragetPort: 80
|
Reference in New Issue
Block a user