Skip to content

Commit

Permalink
added dev and prd k8s manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
imilchev committed Sep 30, 2021
1 parent 520efc2 commit 870bb1d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/web.yaml → manifests/dev/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: frontend-headless
namespace: podkrepibg
namespace: podkrepibg-dev
spec:
selector:
app: frontend
Expand All @@ -17,7 +17,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: podkrepibg
namespace: podkrepibg-dev
labels:
app: frontend
spec:
Expand Down
71 changes: 71 additions & 0 deletions manifests/prd/web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: v1
kind: Service
metadata:
name: frontend-headless
namespace: podkrepibg
spec:
selector:
app: frontend
clusterIP: None
ports:
- name: http
port: 80
targetPort: 3040
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: podkrepibg
labels:
app: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: ghcr.io/podkrepi-bg/frontend:v0.6.0
imagePullPolicy: IfNotPresent
env:
- name: NODE_ENV
value: production
- name: TARGET_ENV
value: production
- name: APP_ENV
value: production
- name: APP_URL
value: https://podkrepi.bg
- name: APP_PORT
value: '3040'
- name: API_URL
value: https://podkrepi.bg
- name: REST_API_PORT
value: '80'
- name: KEYCLOAK_URL
value: 'https://keycloak.podkrepi.bg/auth'
- name: KEYCLOAK_REALM
value: 'webapp'
- name: KEYCLOAK_CLIENT_ID
value: 'account'
ports:
- containerPort: 3040
livenessProbe:
httpGet:
path: /api/healthcheck
port: 3040
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /api/healthcheck
port: 3040
initialDelaySeconds: 5
periodSeconds: 5

0 comments on commit 870bb1d

Please sign in to comment.