Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: certsync-csi
name: redis
labels:
app: redis
spec:
selector:
matchLabels:
app: redis
replicas: 1
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:4-32bit
resources:
requests:
cpu: 200m
memory: 100Mi
limits:
cpu: 200m
memory: 100Mi
ports:
- containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
namespace: certsync-csi
name: redis
labels:
app: redis
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: certsync-csi
name: realtimeapp
labels:
app: realtime
spec:
selector:
matchLabels:
app: realtime
replicas: 1
template:
metadata:
labels:
app: realtime
spec:
containers:
- name: realtimeapp
image: gbaeke/fluxapp:1.0.2
volumeMounts:
- mountPath: "/mnt/secrets-store"
name: secrets-store-inline
readOnly: true
env:
- name: REDISHOST
value: "redis:6379"
resources:
requests:
cpu: 25m
memory: 50Mi
limits:
cpu: 150m
memory: 150Mi
ports:
- containerPort: 8080
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "azure-gebakv"
---
apiVersion: v1
kind: Service
metadata:
name: realtime
namespace: certsync-csi
labels:
app: realtime
spec:
ports:
- port: 80
targetPort: 8080
selector:
app: realtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.