update to git
This commit is contained in:
No files matched your search
@@ -0,0 +1,39 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: qris-jatim
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 3000
|
||||
path: /
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 60
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 3000
|
||||
path: /
|
||||
startupProbe:
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 120 #0
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 3000
|
||||
path: /
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
spec:
|
||||
# replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: qris-jatim
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 200Mi
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- name: vol-qris-media
|
||||
nfs:
|
||||
server: nas-rx300.rssa
|
||||
path: /export/qris/media
|
||||
readOnly: false
|
||||
@@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
labels:
|
||||
app: qris-jatim
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: qris-jatim
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: qris-jatim
|
||||
spec:
|
||||
containers:
|
||||
- name: qris-jatim
|
||||
image: git.rssa.top/effendy/qris_bank_jatim:20251212093005-main
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: qris-jatim-env
|
||||
volumeMounts:
|
||||
- mountPath: "/app/public/content"
|
||||
name: vol-qris-media
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# kustomization.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
|
||||
patches:
|
||||
- path: deployment-resources.yaml
|
||||
- path: deployment-probes.yaml
|
||||
- path: deployment-volumes.yaml
|
||||
|
||||
commonLabels:
|
||||
app: qris-jatim
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
spec:
|
||||
selector:
|
||||
app: qris-jatim
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
@@ -0,0 +1,2 @@
|
||||
kustomize:
|
||||
dir: ""
|
||||
@@ -0,0 +1,6 @@
|
||||
# kustomization.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- overlays/prod
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: eletter
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: eletter
|
||||
minReplicas: 1
|
||||
maxReplicas: 1
|
||||
targetCPUUtilizationPercentage: 70
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: eletter
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`eletter.dev.rssa.id`)
|
||||
middlewares:
|
||||
- name: default-headers
|
||||
services:
|
||||
- name: eletter-dev
|
||||
port: 80
|
||||
tls:
|
||||
secretName: dev-rssa-id-tls
|
||||
@@ -0,0 +1,49 @@
|
||||
# kustomization.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- ingress-route.yaml
|
||||
- pvc.yaml
|
||||
- hpa.yaml
|
||||
|
||||
namespace: rssa-apps-dev
|
||||
nameSuffix: -dev
|
||||
commonLabels:
|
||||
app: eletter-dev
|
||||
|
||||
images:
|
||||
- name: git.rssa.top/dwi.firman/eletter
|
||||
newTag: latest-rebuild_eletter
|
||||
# 20240905081528-rebuild_eletter
|
||||
# 20240904073444-rebuild_eletter
|
||||
# 20240808075420-rebuild_eletter
|
||||
# 20240808075420-rebuild_eletter #stable
|
||||
# "latest-rebuild_eletter"
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
name: eletter
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/envFrom/0/secretRef/name
|
||||
value: eletter-env-dev
|
||||
|
||||
secretGenerator:
|
||||
- name: eletter-env-dev
|
||||
literals:
|
||||
# - APP_ENV=dev
|
||||
# - DB_HOSTNAME=10.10.123.165
|
||||
# - DB_PORT=5000
|
||||
# - DB_USERNAME=stim
|
||||
# - DB_PASSWORD=stim*RS54
|
||||
# - DB_NAME=eletter_dev_db
|
||||
|
||||
- APP_ENV=dev
|
||||
- DB_HOSTNAME=10.10.123.213
|
||||
- DB_PORT=5432
|
||||
- DB_USERNAME=postgres
|
||||
- DB_PASSWORD=rumbuk
|
||||
- DB_NAME=simdistu
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: eletter
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
storageClassName: nas-rx300
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: qris-rssa-id
|
||||
spec:
|
||||
secretName: qris-rssa-id-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-production
|
||||
kind: ClusterIssuer
|
||||
commonName: "qris.rssa.id"
|
||||
dnsNames:
|
||||
- "qris.rssa.id"
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: qris-jatim
|
||||
minReplicas: 1
|
||||
maxReplicas: 1
|
||||
targetCPUUtilizationPercentage: 70
|
||||
@@ -0,0 +1,37 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: qris-jatim-local
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-internal
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`qris-jatim.rssa.id`)
|
||||
services:
|
||||
- name: qris-jatim-prod
|
||||
port: 80
|
||||
|
||||
---
|
||||
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: qris-jatim
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`qris-jatim.rssa.id`)
|
||||
middlewares:
|
||||
- name: default-headers
|
||||
services:
|
||||
- name: qris-jatim-prod
|
||||
port: 80
|
||||
tls:
|
||||
secretName: qris-rssa-id-tls
|
||||
@@ -0,0 +1,40 @@
|
||||
# kustomization.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- ingress-route.yaml
|
||||
- hpa.yaml
|
||||
- pvc.yaml
|
||||
- pv.yaml
|
||||
- smb-credentials.yaml
|
||||
- certificate.yaml
|
||||
|
||||
namespace: rssa-apps-prod-new
|
||||
nameSuffix: -prod
|
||||
commonLabels:
|
||||
app: qris-jatim-prod
|
||||
|
||||
images:
|
||||
- name: git.rssa.top/effendy/qris_bank_jatim
|
||||
newTag: "20251212104443-main"
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
name: qris-jatim
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/envFrom/0/secretRef/name
|
||||
value: qris-jatim-env-prod
|
||||
|
||||
secretGenerator:
|
||||
- name: qris-jatim-env-prod
|
||||
literals:
|
||||
- NODE_ENV=production
|
||||
- HOST=0.0.0.0
|
||||
- CI=true # Menghindari TTY prompt pada Nuxt/Consola
|
||||
- FOLDER_PATH=public/content
|
||||
- URL_BASE=wss://web-socket-qris.rssa.id/api/v1/ws
|
||||
- QUERY=user_id=QRIS&room=BANKJATIM
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: smb-data
|
||||
spec:
|
||||
capacity:
|
||||
storage: 8Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: manual
|
||||
flexVolume:
|
||||
driver: "kubernetes.io/cifs"
|
||||
options:
|
||||
server: "10.10.123.49"
|
||||
share: "qris"
|
||||
mountOptions: "vers=3.0,username=qris,password=mailadmin123"
|
||||
@@ -0,0 +1,23 @@
|
||||
# apiVersion: v1
|
||||
# kind: PersistentVolumeClaim
|
||||
# metadata:
|
||||
# name: qris-jatim
|
||||
# spec:
|
||||
# accessModes:
|
||||
# - ReadWriteMany
|
||||
# resources:
|
||||
# requests:
|
||||
# storage: 8Gi
|
||||
# storageClassName: nas-rx300
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: smb-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
storageClassName: manual
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: smb-credentials
|
||||
type: Opaque
|
||||
data:
|
||||
username: qris
|
||||
password: mailadmin123
|
||||
Reference in New Issue
Block a user