Skip to content
Snippets Groups Projects
Verified Commit 7a5a537f authored by Mark's avatar Mark
Browse files

Add helmcharts for user backend

parent 1c9f193c
No related branches found
No related tags found
1 merge request!5Service Integration
Pipeline #310 passed
......@@ -21,15 +21,9 @@ spec:
env:
- name: HYDRA_ADMIN_URL
value: {{ .Values.global.hydraAdminUrl }}
- name: GRAPHQL_URL
value: http://{{ include "single-sign-on.fullname" . }}-userbackend/graphql
ports:
- name: consent-http
containerPort: 5001
protocol: TCP
#livenessProbe:
#httpGet:
#path: /consent
#port: consent-http
#readinessProbe:
#httpGet:
#path: /consent
#port: consent-http
......@@ -21,15 +21,10 @@ spec:
env:
- name: HYDRA_ADMIN_URL
value: {{ .Values.global.hydraAdminUrl }}
- name: GRAPHQL_URL
value: http://{{ include "single-sign-on.fullname" . }}-userbackend/graphql
ports:
- name: login-http
containerPort: 5000
protocol: TCP
livenessProbe:
#httpGet:
#path: /
#port: login-http
#readinessProbe:
#httpGet:
#path: /
#port: login-http
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "single-sign-on.fullname" . }}-userbackend
labels:
{{ include "single-sign-on.labels" . | indent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: {{ include "single-sign-on.name" . }}-userbackend
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "single-sign-on.name" . }}-userbackend
spec:
containers:
- name: {{ .Chart.Name }}-userbackend-db
image: postgres:11
env:
- name: POSTGRES_PASSWORD
value: secret
- name: {{ .Chart.Name }}-userbackend
image: "open.greenhost.net:4567/openappstack/user-panel:master"
imagePullPolicy: Always
env:
- name: HYDRA_ADMIN_URL
value: {{ .Values.global.hydraAdminUrl }}
- name: DATABASE_USER
value: postgres
- name: DATABASE_PASSWORD
value: secret
- name: DATABASE_NAME
value: postgres
- name: DATABASE_HOST
value: localhost
ports:
- name: userbackend
containerPort: 5000
protocol: TCP
apiVersion: v1
kind: Service
metadata:
name: {{ include "single-sign-on.fullname" . }}-userbackend
labels:
{{ include "single-sign-on.labels" . | indent 4 }}
spec:
ports:
- port: 80
targetPort: userbackend
protocol: TCP
name: userbackend
selector:
app.kubernetes.io/name: {{ include "single-sign-on.name" . }}-userbackend
......@@ -25,8 +25,7 @@ hydra:
dsn: memory
urls:
self:
issuer: https://hydra-admin.oas.example.net
public: https://hydra.oas.example.net
issuer: https://hydra.oas.example.net
login: https://login.oas.example.net
consent: https://consent.oas.example.net
secrets:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment