-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Development][Add] Added recreation logic for statefulset (#411)
* Added code for recreate statefulsets * Added logic for standalone and cluster recreate * Added push command for buildx * Added example for recreation of sts Signed-off-by: iamabhishek-dubey <abhishekbhardwaj510@gmail.com>
- Loading branch information
1 parent
8762e50
commit 77b4275
Showing
7 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
apiVersion: redis.redis.opstreelabs.in/v1beta1 | ||
kind: RedisCluster | ||
metadata: | ||
name: redis-cluster | ||
annotations: | ||
redis.opstreelabs.in/recreate-statefulset: "true" | ||
spec: | ||
clusterSize: 3 | ||
clusterVersion: v7 | ||
securityContext: | ||
runAsUser: 1000 | ||
fsGroup: 1000 | ||
persistenceEnabled: true | ||
kubernetesConfig: | ||
image: quay.io/opstree/redis:v7.0.5 | ||
imagePullPolicy: IfNotPresent | ||
redisExporter: | ||
enabled: false | ||
image: quay.io/opstree/redis-exporter:v1.44.0 | ||
storage: | ||
volumeClaimTemplate: | ||
spec: | ||
# storageClassName: standard | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
priorityClassName: priority-100 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: redis.redis.opstreelabs.in/v1beta1 | ||
kind: Redis | ||
metadata: | ||
name: redis-standalone | ||
annotations: | ||
redis.opstreelabs.in/recreate-statefulset: "true" | ||
spec: | ||
kubernetesConfig: | ||
image: quay.io/opstree/redis:v7.0.5 | ||
imagePullPolicy: IfNotPresent | ||
securityContext: | ||
runAsUser: 1000 | ||
fsGroup: 1000 | ||
storage: | ||
volumeClaimTemplate: | ||
spec: | ||
# storageClassName: standard | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
redisExporter: | ||
enabled: false | ||
image: quay.io/opstree/redis-exporter:v1.44.0 | ||
priorityClassName: system-cluster-critical |
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
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
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