Skip to content

Commit

Permalink
push env Vars template
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Sep 16, 2023
1 parent 680ad67 commit 3ead2e6
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 0 deletions.
48 changes: 48 additions & 0 deletions example/v1beta2/env_vars/redis-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: RedisCluster
metadata:
name: redis-cluster
spec:
clusterSize: 3
clusterVersion: v7
persistenceEnabled: true
podSecurityContext:
runAsUser: 1000
fsGroup: 1000
kubernetesConfig:
image: quay.io/opstree/redis:v7.0.11
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 101m
memory: 128Mi
limits:
cpu: 101m
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
# - name: regcred
storage:
volumeClaimTemplate:
spec:
# storageClassName: standard
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
nodeConfVolume: true
nodeConfVolumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi

40 changes: 40 additions & 0 deletions example/v1beta2/env_vars/redis-replication.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: RedisReplication
metadata:
name: redis-replication
spec:
clusterSize: 3
podSecurityContext:
runAsUser: 1000
fsGroup: 1000
# redisConfig:
# additionalRedisConfig: redis-external-config
kubernetesConfig:
image: quay.io/opstree/redis:v7.0.11
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 101m
memory: 128Mi
limits:
cpu: 101m
memory: 128Mi
redisSecret:
name: redis-secret
key: password
# imagePullSecrets:
# - name: regcred
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
storage:
volumeClaimTemplate:
spec:
# storageClassName: standard
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
30 changes: 30 additions & 0 deletions example/v1beta2/env_vars/redis-sentinel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: RedisSentinel
metadata:
name: redis-sentinel
spec:
clusterSize: 3
podSecurityContext:
runAsUser: 1000
fsGroup: 1000
pdb:
enabled: false
minAvailable: 1
redisSentinelConfig:
redisReplicationName : redis-replication
kubernetesConfig:
image: quay.io/opstree/redis-sentinel:v7.0.7
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 101m
memory: 128Mi
limits:
cpu: 101m
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
56 changes: 56 additions & 0 deletions example/v1beta2/env_vars/redis-standalone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: Redis
metadata:
name: redis-standalone
spec:
# redisConfig:
# additionalRedisConfig: redis-external-config
podSecurityContext:
runAsUser: 1000
fsGroup: 1000
kubernetesConfig:
image: quay.io/opstree/redis:v7.0.11
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 101m
memory: 128Mi
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
# - name: regcred
redisExporter:
enabled: false
image: quay.io/opstree/redis-exporter:v1.44.0
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
storage:
volumeClaimTemplate:
spec:
# storageClassName: standard
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
# nodeSelector:
# kubernetes.io/hostname: minikube
# podSecurityContext: {}
# priorityClassName:
# affinity:
# Tolerations: []

0 comments on commit 3ead2e6

Please sign in to comment.