0c5cf29f83
Deploy to Server / deploy (push) Has been cancelled
- Kustomize: base + overlays/dev + overlays/prod
115 lines
2.4 KiB
YAML
115 lines
2.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: forust-userbot-deployment
|
|
labels:
|
|
app: forust-userbot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: forust-userbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: forust-userbot
|
|
spec:
|
|
containers:
|
|
- name: forust-userbot
|
|
image: gcr.forust.xyz/forust/userbot:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
envFrom:
|
|
- secretRef:
|
|
name: userbot-common-secrets
|
|
- configMapRef:
|
|
name: userbot-common-config
|
|
- secretRef:
|
|
name: userbot-forust-secrets
|
|
volumeMounts:
|
|
- name: forust-storage
|
|
mountPath: /app/data
|
|
subPath: data
|
|
- name: forust-storage
|
|
mountPath: /app/logs
|
|
subPath: logs
|
|
volumes:
|
|
- name: forust-storage
|
|
persistentVolumeClaim:
|
|
claimName: forust-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: forust-pvc
|
|
spec:
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: anna-userbot-deployment
|
|
labels:
|
|
app: anna-userbot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: anna-userbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: anna-userbot
|
|
spec:
|
|
containers:
|
|
- name: anna-userbot
|
|
image: gcr.forust.xyz/forust/userbot:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
envFrom:
|
|
- secretRef:
|
|
name: userbot-common-secrets
|
|
- configMapRef:
|
|
name: userbot-common-config
|
|
- secretRef:
|
|
name: userbot-anna-secrets
|
|
volumeMounts:
|
|
- name: anna-storage
|
|
mountPath: /app/data
|
|
subPath: data
|
|
- name: anna-storage
|
|
mountPath: /app/logs
|
|
subPath: logs
|
|
volumes:
|
|
- name: anna-storage
|
|
persistentVolumeClaim:
|
|
claimName: anna-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: anna-pvc
|
|
spec:
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|