update deployment configs to use unprivledged nginx
This commit is contained in:
@ -28,7 +28,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: api-golang
|
||||
image: sidpalas/devops-directive-docker-course-api-golang:7
|
||||
image: sidpalas/devops-directive-docker-course-api-golang:8
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
|
||||
@ -28,7 +28,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: api-node
|
||||
image: sidpalas/devops-directive-docker-course-api-node:8
|
||||
image: sidpalas/devops-directive-docker-course-api-node:9
|
||||
env:
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
|
||||
@ -1,3 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: client-react-nginx
|
||||
spec:
|
||||
selector:
|
||||
app: client-react-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@ -17,14 +29,15 @@ spec:
|
||||
containers:
|
||||
- image: sidpalas/devops-directive-docker-course-client-react-nginx:5
|
||||
name: client-react-nginx
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: 80
|
||||
port: 8080
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
@ -53,7 +66,7 @@ metadata:
|
||||
data:
|
||||
default.conf: |-
|
||||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
|
||||
location /ping {
|
||||
access_log off;
|
||||
|
||||
@ -12,7 +12,7 @@ spec:
|
||||
- kind: Service
|
||||
name: client-react-nginx
|
||||
namespace: default
|
||||
port: 80
|
||||
port: 8080
|
||||
scheme: http
|
||||
- kind: Rule
|
||||
match: Host(`docker-course-kubernetes.devopsdirective.com`) && PathPrefix(`/api/node`)
|
||||
|
||||
Reference in New Issue
Block a user