feat: add lolympus tournament support deployment
This commit is contained in:
1 parent
80b9341308
commit
fd99f3cb2a
13 files changed
+246
-2
No files matched your search
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: lolympus-tournament-support-config
|
||||
labels:
|
||||
app.kubernetes.io/component: api
|
||||
data:
|
||||
APP_ENV: prod
|
||||
NODE_ENV: production
|
||||
LOG_LEVEL: info
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: lolympus-tournament-support
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/environment: prod
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: secrets.infisical.com/v1beta1
|
||||
kind: InfisicalStaticSecret
|
||||
metadata:
|
||||
name: lolympus-tournament-support-secrets
|
||||
spec:
|
||||
infisicalAuthRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
syncOptions:
|
||||
refreshInterval: 60s
|
||||
instantUpdates: false
|
||||
sources:
|
||||
- projectId: 26a80d59-a424-4e33-adfc-2b6e84d6e25f
|
||||
environmentSlug: prod
|
||||
secretPath: /
|
||||
recursive: true
|
||||
targets:
|
||||
- name: lolympus-tournament-support-secrets
|
||||
namespace: lolympus-prod
|
||||
kind: Secret
|
||||
creationPolicy: Owner
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: lolympus-prod
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- configmap.yaml
|
||||
- infisical-secret.yaml
|
||||
|
||||
images:
|
||||
- name: registry.dahyeon.us/lolympus/lolympus-tournament-support
|
||||
newName: registry.dahyeon.us/lolympus/lolympus-tournament-support/prod:1.0.4
|
||||
|
||||
replicas:
|
||||
- name: lolympus-tournament-support
|
||||
count: 2
|
||||
|
||||
patches:
|
||||
- path: deployment-patch.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: lolympus-tournament-support-config
|
||||
labels:
|
||||
app.kubernetes.io/component: api
|
||||
data:
|
||||
APP_ENV: staging
|
||||
NODE_ENV: production
|
||||
LOG_LEVEL: debug
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: lolympus-tournament-support
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/environment: staging
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: lolympus-staging
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- configmap.yaml
|
||||
|
||||
images:
|
||||
- name: registry.dahyeon.us/lolympus/lolympus-tournament-support
|
||||
newName: registry.dahyeon.us/lolympus/lolympus-tournament-support/staging/1.0.4
|
||||
|
||||
replicas:
|
||||
- name: lolympus-tournament-support
|
||||
count: 1
|
||||
|
||||
patches:
|
||||
- path: deployment-patch.yaml
|
||||
Reference in new issue
Block a user