Slave Connect

It can be used to connect to Slave, but each Slave can have its own configuration, for example, TLS can be defined separately as enabled and disabled.

Property

FieldDescriptionRequiredType
slavesConfiguration settings for slaves.[]object
slaves[].idUnique ID for the slave.string
slaves[].uriAddress of the slave, specified according to gRPC naming conventions.string
slaves[].certificateTLS settings for communication with the slave. Defaults to disabled.object
slaves[].certificate.enabledEnable TLS for communication with the slave. Defaults to false.boolean
slaves[].certificate.ca_certPath to the CA certificate used for TLS. Required if certificate.enabled=true.✅ (certificate.enabled=true)string
slaves[].certificate.server_name_overrideOverride for the server name used in TLS. Required if certificate.enabled=true.✅ (certificate.enabled=true)string
slaves[].certificate.insecure_skip_verifySkip server name verification in TLS. Defaults to false.boolean

Sample

kind: SlaveConnect
slaves:
{{- range slice .Values.slaveLists 0 .Values.SlaveCount }}
  - id: "{{ .id }}"
    uri: "dns:{{ .address }}:{{ .port }}" # support schema https://github.com/grpc/grpc/blob/master/doc/naming.md
    certificate:
      enabled: true
      ca_cert: "certs/ca.crt"
      server_name_override: "localhost"
      insecure_skip_verify: false
{{- end }}