In Chart.yaml I specified dependency:
dependencies:
- name: redis
version: 15.0.3
repository: https://charts.bitnami.com/bitnami
In deployment.yaml I specify service:
apiVersion: v1
kind: Service
metadata:
labels:
app: redis
name: redis-svc
spec:
clusterIP: None
ports:
- port: 6355
selector:
app: redis
But what I see after kubectl get all:
service/redis-svc ClusterIP None <none> 6355/TCP 36s
statefulset.apps/myapp-redis-master 0/1 37s
statefulset.apps/myapp-redis-replicas 0/3 37s
I want single redis instance as Service. What do I do wrong?
Helm supports passing arguments to dependent sub-charts. You can override the architecture of your redis sub-chart by adding this to your values.yaml file.
redis:
architecture: standalone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With