add source code and readme
This commit is contained in:
71
manifests/applications/picsur/deployment.yaml
Normal file
71
manifests/applications/picsur/deployment.yaml
Normal file
@@ -0,0 +1,71 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: picsur
|
||||
namespace: picsur-system
|
||||
labels:
|
||||
app: picsur
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: picsur
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: picsur
|
||||
spec:
|
||||
containers:
|
||||
- name: picsur
|
||||
image: ghcr.io/caramelfur/picsur:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: PICSUR_PORT
|
||||
value: "8080"
|
||||
- name: PICSUR_HOST
|
||||
value: "0.0.0.0"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: picsur-config
|
||||
volumeMounts:
|
||||
- name: picsur-data
|
||||
mountPath: /app/data
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1000m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8080
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8080
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
volumes:
|
||||
- name: picsur-data
|
||||
persistentVolumeClaim:
|
||||
claimName: picsur-data
|
||||
Reference in New Issue
Block a user