Add persona-lenz deployment manifests
This commit is contained in:
1 parent
979326c082
commit
b2dba616a1
19 files changed
+342
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: persona-lenz-config
|
||||
labels:
|
||||
app.kubernetes.io/component: api
|
||||
data:
|
||||
APP_ENV: prod
|
||||
NODE_ENV: prod
|
||||
LOG_LEVEL: info
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: persona-lenz
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/environment: prod
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalStaticSecret
|
||||
metadata:
|
||||
name: persona-lenz-secrets
|
||||
spec:
|
||||
infisicalAuthRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
syncOptions:
|
||||
refreshInterval: 60s
|
||||
instantUpdates: false
|
||||
sources:
|
||||
- projectId: 4a8c8894-e041-4864-8c40-01da0cee2f87
|
||||
environmentSlug: prod
|
||||
secretPath: /
|
||||
recursive: true
|
||||
targets:
|
||||
- name: persona-lenz-secrets
|
||||
namespace: persona-lenz-prod
|
||||
kind: Secret
|
||||
creationPolicy: Owner
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: persona-lenz
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
ingressClassName: haproxy
|
||||
tls:
|
||||
- hosts:
|
||||
- persona-lenz-api.dahyeon.us
|
||||
secretName: persona-lenz-prod-tls
|
||||
rules:
|
||||
- host: persona-lenz-api.dahyeon.us
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: persona-lenz
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: persona-lenz-prod
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- ../../base
|
||||
- configmap.yaml
|
||||
- infisical-secret.yaml
|
||||
- ingress.yaml
|
||||
|
||||
images:
|
||||
- name: registry.dahyeon.us/dahyeon/persona-lenz
|
||||
newName: registry.dahyeon.us/dahyeon/persona-lenz
|
||||
newTag: "1"
|
||||
|
||||
replicas:
|
||||
- name: persona-lenz
|
||||
count: 1
|
||||
|
||||
patches:
|
||||
- path: deployment-patch.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: persona-lenz-prod
|
||||
labels:
|
||||
app.kubernetes.io/name: persona-lenz
|
||||
app.kubernetes.io/part-of: persona-lenz
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
app.kubernetes.io/environment: prod
|
||||
Reference in new issue
Block a user