fix: simplyfy redis, and run staging in standalone mode
This commit is contained in:
+8
-22
@@ -9,10 +9,8 @@ spec:
|
|||||||
elements:
|
elements:
|
||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
env: prod
|
||||||
hostname: redis.srv.oceanbox.io
|
|
||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: staging
|
env: staging
|
||||||
hostname: redis.beta.oceanbox.io
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-redis'
|
name: '{{ env }}-redis'
|
||||||
@@ -22,25 +20,13 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: redis
|
namespace: redis
|
||||||
sources:
|
sources:
|
||||||
# - repoURL: https://charts.bitnami.com/bitnami
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
# targetRevision: 18.9.1
|
targetRevision: 19.5.2
|
||||||
# chart: redis
|
chart: redis
|
||||||
# helm:
|
helm:
|
||||||
# valueFiles:
|
valueFiles:
|
||||||
# - $values/redis/values.yaml
|
- $values/redis/values-{{ env }}.yaml
|
||||||
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
# targetRevision: HEAD
|
|
||||||
# path: kustomizations/redis/{{ env }}
|
|
||||||
# ref: values
|
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: main
|
targetRevision: HEAD
|
||||||
path: kustomizations/redis
|
path: kustomizations/redis
|
||||||
plugin:
|
ref: values
|
||||||
name: kustomize-helm-with-rewrite
|
|
||||||
parameters:
|
|
||||||
- name: env
|
|
||||||
string: '{{ env }}'
|
|
||||||
- name: hostname
|
|
||||||
string: '{{ hostname }}'
|
|
||||||
- name: chart
|
|
||||||
string: bitnami/redis
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- _manifest.yaml
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
bitnami/redis
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- nodeport.yaml
|
|
||||||
- ../base
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: prod-redis-nodeport
|
|
||||||
spec:
|
|
||||||
externalTrafficPolicy: Cluster
|
|
||||||
ports:
|
|
||||||
- name: redis
|
|
||||||
nodePort: 30379
|
|
||||||
port: 6379
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 6379
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/instance: prod-redis
|
|
||||||
app.kubernetes.io/name: redis
|
|
||||||
sessionAffinity: None
|
|
||||||
type: NodePort
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
resources:
|
|
||||||
- nodeport.yaml
|
|
||||||
- ../base
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: staging-redis-nodeport
|
|
||||||
spec:
|
|
||||||
externalTrafficPolicy: Cluster
|
|
||||||
ports:
|
|
||||||
- name: redis
|
|
||||||
nodePort: 31379
|
|
||||||
port: 6379
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 6379
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/instance: staging-redis
|
|
||||||
app.kubernetes.io/name: redis
|
|
||||||
sessionAffinity: None
|
|
||||||
type: NodePort
|
|
||||||
@@ -1,5 +1,13 @@
|
|||||||
replica:
|
architecture: replication
|
||||||
replicaCount: 2
|
|
||||||
auth:
|
auth:
|
||||||
|
enabled: true
|
||||||
|
sentinel: true
|
||||||
|
password: ""
|
||||||
|
usePasswordFiles: false
|
||||||
|
existingSecretPasswordKey: ""
|
||||||
existingSecret: prod-redis
|
existingSecret: prod-redis
|
||||||
|
|
||||||
|
service:
|
||||||
|
nodePorts:
|
||||||
|
redis: 30379
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
|
architechture: standalone
|
||||||
|
|
||||||
replica:
|
replica:
|
||||||
replicaCount: 2
|
replicaCount: 1
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
|
enabled: true
|
||||||
|
sentinel: true
|
||||||
|
password: ""
|
||||||
|
usePasswordFiles: false
|
||||||
|
existingSecretPasswordKey: ""
|
||||||
existingSecret: staging-redis
|
existingSecret: staging-redis
|
||||||
|
|
||||||
|
service:
|
||||||
|
nodePorts:
|
||||||
|
redis: 31379
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
architecture: replication
|
|
||||||
auth:
|
|
||||||
enabled: true
|
|
||||||
sentinel: true
|
|
||||||
password: ""
|
|
||||||
existingSecret: ""
|
|
||||||
existingSecretPasswordKey: ""
|
|
||||||
usePasswordFiles: false
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user