mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
imagepull + add ingress
This commit is contained in:
parent
25dd067b44
commit
0ad5d30834
@ -22,6 +22,7 @@ spec:
|
||||
containers:
|
||||
- name: playlists-api
|
||||
image: aimvector/service-mesh:playlists-api-1.0.0
|
||||
imagePullPolicy : Always
|
||||
ports:
|
||||
- containerPort: 10010
|
||||
env:
|
||||
@ -85,5 +86,23 @@ spec:
|
||||
name: http
|
||||
port: 6379
|
||||
targetPort: 6379
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||
name: playlists-api
|
||||
spec:
|
||||
rules:
|
||||
- host: marcel.test
|
||||
http:
|
||||
paths:
|
||||
- path: /api/playlists(/|$)(.*)
|
||||
backend:
|
||||
serviceName: playlists-api
|
||||
servicePort: 80
|
||||
|
||||
|
||||
|
@ -22,6 +22,7 @@ spec:
|
||||
containers:
|
||||
- name: videos-api
|
||||
image: aimvector/service-mesh:videos-api-1.0.0
|
||||
imagePullPolicy : Always
|
||||
ports:
|
||||
- containerPort: 10010
|
||||
env:
|
||||
|
@ -22,6 +22,7 @@ spec:
|
||||
containers:
|
||||
- name: videos-web
|
||||
image: aimvector/service-mesh:videos-web-1.0.0
|
||||
imagePullPolicy : Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
@ -40,5 +41,22 @@ spec:
|
||||
name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||
name: videos-web
|
||||
spec:
|
||||
rules:
|
||||
- host: marcel.test
|
||||
http:
|
||||
paths:
|
||||
- path: /home(/|$)(.*)
|
||||
backend:
|
||||
serviceName: videos-web
|
||||
servicePort: 80
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user