add rssa apps to git
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: web-socket-qris-rssa-id
|
||||
spec:
|
||||
secretName: web-socket-qris-rssa-id-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-production
|
||||
kind: ClusterIssuer
|
||||
commonName: "web-socket-qris.dev.rssa.id"
|
||||
dnsNames:
|
||||
- "web-socket-qris.dev.rssa.id"
|
||||
@@ -0,0 +1,39 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: web-socket-qris
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 8080
|
||||
path: /api/sistem/health
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 60
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 8080
|
||||
path: /api/sistem/health
|
||||
startupProbe:
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
initialDelaySeconds: 0
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: 8080
|
||||
path: /api/sistem/health
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
spec:
|
||||
# replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: web-socket-qris
|
||||
resources:
|
||||
limits:
|
||||
cpu: 400m
|
||||
memory: 300Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 200Mi
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
labels:
|
||||
app: web-socket-qris
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: web-socket-qris
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: web-socket-qris
|
||||
spec:
|
||||
containers:
|
||||
- name: web-socket-qris
|
||||
image: git.rssa.top/rachmadiyanti.annisa.3004/websocket-qris:20251212110938-main
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: web-socket-qris
|
||||
minReplicas: 1
|
||||
maxReplicas: 1
|
||||
targetCPUUtilizationPercentage: 70
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`web-socket-qris.rssa.id`)
|
||||
middlewares:
|
||||
- name: default-headers
|
||||
services:
|
||||
- name: web-socket-qris
|
||||
port: 80
|
||||
tls:
|
||||
secretName: web-socket-qris-rssa-id-tls
|
||||
@@ -0,0 +1,18 @@
|
||||
# kustomization.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress-route.yaml
|
||||
- certificate.yaml
|
||||
- hpa.yaml
|
||||
|
||||
patches:
|
||||
- path: deployment-resources.yaml
|
||||
- path: deployment-probes.yaml
|
||||
|
||||
namespace: rssa-apps-prod
|
||||
commonLabels:
|
||||
app: web-socket-qris
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: web-socket-qris
|
||||
spec:
|
||||
selector:
|
||||
app: web-socket-qris
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
Reference in New Issue
Block a user