Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Helm: install single redis instance from chart dependency

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?

like image 617
Rudziankoŭ Avatar asked Nov 15 '25 03:11

Rudziankoŭ


1 Answers

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
like image 95
vishnu narayanan Avatar answered Nov 17 '25 20:11

vishnu narayanan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!