https, testing queue, change domain
This commit is contained in:
@@ -8,8 +8,8 @@ cnpg:
|
|||||||
backup:
|
backup:
|
||||||
enable: true
|
enable: true
|
||||||
schedule: "0 0 0 * * *"
|
schedule: "0 0 0 * * *"
|
||||||
destinationPath: "s3://liquid-code/backup"
|
destinationPath: "s3://liquid-code/backup-hexcore"
|
||||||
recovery:
|
recovery:
|
||||||
enable: false
|
enable: true
|
||||||
oldClusterName: liquid-db
|
oldClusterName: liquid-db
|
||||||
sourcePath: "s3://liquid-code/backup"
|
sourcePath: "s3://liquid-code/backup"
|
||||||
@@ -37,6 +37,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Values.s3.secretName | quote }}
|
name: {{ .Values.s3.secretName | quote }}
|
||||||
key: {{ required "secret-key-key!" .Values.s3.secretKeyKey | quote }}
|
key: {{ required "secret-key-key!" .Values.s3.secretKeyKey | quote }}
|
||||||
|
- name: TESTING_MODULE_URL
|
||||||
|
value: http://{{ .Release.Name }}-queue-service:8080/
|
||||||
- name: PG_URI
|
- name: PG_URI
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-queue-deployment
|
||||||
|
labels:
|
||||||
|
app: {{ .Release.Name }}-queue
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ .Release.Name }}-queue
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ .Release.Name }}-queue
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: {{ .Release.Name }}-queue
|
||||||
|
image: ghcr.io/nullptroma/liquid-queue:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: github-registry
|
||||||
11
liquid-code-chart/templates/Services/queue-service.yaml
Normal file
11
liquid-code-chart/templates/Services/queue-service.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-queue-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: {{ .Release.Name }}-queue
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
21
liquid-code-chart/templates/certificate-issuer.yaml
Normal file
21
liquid-code-chart/templates/certificate-issuer.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-certificate-issuer
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
{{ if .Values.staging }}
|
||||||
|
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
{{ else }}
|
||||||
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
{{ end }}
|
||||||
|
# Email address used for ACME registration
|
||||||
|
email: mr.pytkov@gmail.com
|
||||||
|
# Name of a secret used to store the ACME account private key
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: {{ .Release.Name }}-acme-private-key
|
||||||
|
# Enable the HTTP-01 challenge provider
|
||||||
|
solvers:
|
||||||
|
- http01:
|
||||||
|
ingress:
|
||||||
|
ingressClassName: traefik
|
||||||
@@ -2,9 +2,16 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-ingress
|
name: {{ .Release.Name }}-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/issuer: "{{ .Release.Name }}-certificate-issuer"
|
||||||
spec:
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- liquidcode.ru
|
||||||
|
- api.liquidcode.ru
|
||||||
|
secretName: {{ .Release.Name }}-tls-secret
|
||||||
rules:
|
rules:
|
||||||
- host: api.nullptr.top
|
- host: api.liquidcode.ru
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -14,7 +21,7 @@ spec:
|
|||||||
name: {{ .Release.Name }}-backend-service
|
name: {{ .Release.Name }}-backend-service
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
- host: nullptr.top
|
- host: liquidcode.ru
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -11,4 +11,5 @@ database:
|
|||||||
secretName: liquid-db-app
|
secretName: liquid-db-app
|
||||||
migrateDb: true
|
migrateDb: true
|
||||||
dropDb: false
|
dropDb: false
|
||||||
|
staging: false
|
||||||
imagePullSecret: github-registry
|
imagePullSecret: github-registry
|
||||||
|
|||||||
3
scripts/client/setup-certmanager.sh
Normal file
3
scripts/client/setup-certmanager.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml
|
||||||
Reference in New Issue
Block a user