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?
2
Answers
You need to set the parameter for a standalone redis:
For example, install redis via imperative command:
Helm supports passing arguments to dependent sub-charts. You can override the architecture of your
redis
sub-chart by adding this to yourvalues.yaml
file.