Created
May 5, 2021 05:07
-
-
Save rosehgal/4d969b0d8befc68876ec374441a94232 to your computer and use it in GitHub Desktop.
CTFd Redis deployment spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
namespace: ctfd | |
creationTimestamp: null | |
name: ctfd-redis-cache-pv | |
labels: | |
ctfd: redis-pv | |
app: ctfd-redis-cache-pv | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Mi | |
status: {} | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
namespace: ctfd | |
creationTimestamp: null | |
name: ctfd-redis-cache | |
labels: | |
ctfd: redis | |
app: ctfd-redis-cache | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: ctfd-redis-cache | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
ctfd: redis | |
app: ctfd-redis-cache | |
spec: | |
containers: | |
- image: redis:4 | |
imagePullPolicy: "" | |
name: ctfd-redis-cache | |
resources: {} | |
volumeMounts: | |
- mountPath: /data | |
name: ctfd-redis-cache-pv | |
restartPolicy: Always | |
serviceAccountName: "" | |
automountServiceAccountToken: false | |
volumes: | |
- name: ctfd-redis-cache-pv | |
persistentVolumeClaim: | |
claimName: ctfd-redis-cache-pv | |
status: {} | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
namespace: ctfd | |
creationTimestamp: null | |
labels: | |
app: ctfd-redis-cache | |
name: ctfd-redis-cache | |
spec: | |
ports: | |
- name: redis | |
port: 6379 | |
protocol: TCP | |
targetPort: 6379 | |
selector: | |
app: ctfd-redis-cache | |
type: ClusterIP | |
status: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment