Со ссылкой на следующую диаграмму управления: https://github.com/confluentinc/cp-helm-charts
Я пытаюсь сделать реестр схемы доступным для модулей в кластере k8s. Для этого я добавил nodePort в values.yaml и service.yaml:
values.yaml:
## External access.
##
external:
enabled: true
# type can be either NodePort or LoadBalancer
type: NodePort
nodePort: 31095
service.yaml:
spec:
ports:
- name: schema-registry
port: {{ .Values.servicePort }}
nodePort: {{ .Values.external.node_port }}
Когда я развертываю диаграмму, nodePort не появляется:
kubectl get svc cp-schema-registry -n kafka-namespace
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
cp-schema-registry ClusterIP 10.4.26.199 <none> 8081/TCP 34m