Ops: Adjust deployment manifests for environment
This commit is contained in:
@@ -15,7 +15,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: reactbin-api:latest
|
image: git.juggalol.com/juggalol/reactbin-api:v1.0.0
|
||||||
command: ["alembic", "upgrade", "head"]
|
command: ["alembic", "upgrade", "head"]
|
||||||
workingDir: /app
|
workingDir: /app
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# Replace <your-domain> with the real domain before applying
|
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@@ -11,10 +10,10 @@ spec:
|
|||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- <your-domain>
|
- reactbin.juggalol.com
|
||||||
secretName: reactbin-tls
|
secretName: reactbin-tls
|
||||||
rules:
|
rules:
|
||||||
- host: <your-domain>
|
- host: reactbin.juggalol.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
# /api/ must appear before / — nginx evaluates paths in declaration order
|
# /api/ must appear before / — nginx evaluates paths in declaration order
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# Replace 'latest' with the real image tag before applying
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ metadata:
|
|||||||
name: api-secret
|
name: api-secret
|
||||||
namespace: reactbin
|
namespace: reactbin
|
||||||
spec:
|
spec:
|
||||||
vaultAuthRef: reactbin-auth
|
vaultAuthRef: reactbin-vault-auth
|
||||||
mount: secret
|
mount: kv
|
||||||
type: kv-v2
|
type: kv-v2
|
||||||
# Required Vault keys at this path:
|
# Required Vault keys at this path:
|
||||||
# DATABASE_URL, JWT_SECRET_KEY, OWNER_USERNAME, OWNER_PASSWORD,
|
# DATABASE_URL, JWT_SECRET_KEY, OWNER_USERNAME, OWNER_PASSWORD,
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ metadata:
|
|||||||
name: minio-secret
|
name: minio-secret
|
||||||
namespace: reactbin
|
namespace: reactbin
|
||||||
spec:
|
spec:
|
||||||
vaultAuthRef: reactbin-auth
|
vaultAuthRef: reactbin-vault-auth
|
||||||
mount: secret
|
mount: kv
|
||||||
type: kv-v2
|
type: kv-v2
|
||||||
# Required Vault keys at this path:
|
# Required Vault keys at this path:
|
||||||
# MINIO_ROOT_USER, MINIO_ROOT_PASSWORD
|
# MINIO_ROOT_USER, MINIO_ROOT_PASSWORD
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: vso-reactbin
|
||||||
|
namespace: reactbin
|
||||||
|
---
|
||||||
apiVersion: secrets.hashicorp.com/v1beta1
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||||||
kind: VaultAuth
|
kind: VaultAuth
|
||||||
metadata:
|
metadata:
|
||||||
name: reactbin-auth
|
name: reactbin-vault-auth
|
||||||
namespace: reactbin
|
namespace: reactbin
|
||||||
spec:
|
spec:
|
||||||
method: kubernetes
|
method: kubernetes
|
||||||
@@ -10,7 +16,7 @@ spec:
|
|||||||
# The operator must create this role in Vault and bind it to the
|
# The operator must create this role in Vault and bind it to the
|
||||||
# default service account in the reactbin namespace with read access
|
# default service account in the reactbin namespace with read access
|
||||||
# to both reactbin/api/config and reactbin/minio/credentials.
|
# to both reactbin/api/config and reactbin/minio/credentials.
|
||||||
role: reactbin
|
role: vso-reactbin
|
||||||
serviceAccount: default
|
serviceAccount: vso-reactbin
|
||||||
audiences:
|
audiences:
|
||||||
- https://kubernetes.default.svc
|
- vault
|
||||||
|
|||||||
Reference in New Issue
Block a user