testing cicd
This commit is contained in:
57
k8s/base/pocketbase-deployment.yaml
Normal file
57
k8s/base/pocketbase-deployment.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: flxn-pocketbase
|
||||
labels:
|
||||
app: flxn
|
||||
component: pocketbase
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: flxn
|
||||
component: pocketbase
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: flxn
|
||||
component: pocketbase
|
||||
spec:
|
||||
containers:
|
||||
- name: pocketbase
|
||||
image: git.yohler.net/kyle/flxn-pocketbase:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8090
|
||||
name: http
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: pb-data
|
||||
mountPath: /pb/pb_data
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8090
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8090
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- name: pb-data
|
||||
persistentVolumeClaim:
|
||||
claimName: flxn-pb-data
|
||||
Reference in New Issue
Block a user