infisical: bring self-hosted stack under GitOps (postgres, valkey, backend); secret.yaml excluded template
This commit is contained in:
14
applications/infisical/valkey/service.yaml
Normal file
14
applications/infisical/valkey/service.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: infisical-valkey
|
||||
namespace: infisical
|
||||
labels:
|
||||
app: infisical-valkey
|
||||
spec:
|
||||
selector:
|
||||
app: infisical-valkey
|
||||
ports:
|
||||
- name: valkey
|
||||
port: 6379
|
||||
targetPort: 6379
|
||||
40
applications/infisical/valkey/statefulset.yaml
Normal file
40
applications/infisical/valkey/statefulset.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: infisical-valkey
|
||||
namespace: infisical
|
||||
spec:
|
||||
serviceName: infisical-valkey
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: infisical-valkey
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: infisical-valkey
|
||||
spec:
|
||||
containers:
|
||||
- name: valkey
|
||||
# Valkey is a drop-in, Redis-protocol-compatible replacement for Redis.
|
||||
image: valkey/valkey:8-alpine
|
||||
args: ["--appendonly", "yes"]
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["valkey-cli", "ping"]
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
Reference in New Issue
Block a user