You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying Redpanda and Console via the operator,
And enabling the TLS for the Console,
Then the created Deployment does not expose the HTTPS port
And therefore the Console cannot be used using HTTPS.
This is not strictly related to the Operator I think since Redpanda Console Helm chart does not add the additional HTTPS port in the Deployment template.
Since there is no option to add an additional port via the config, the HTTPS feature can be enabled but never used.
To replicate
Using a Redpanda cluster yaml which enabled TLS for Kafka and the console:
redpanda-cluster.yaml
apiVersion: cluster.redpanda.com/v1alpha2kind: Redpandametadata:
name: redpandanamespace: redpandaspec:
chartRef:
useFlux: falsechartVersion: 5.9.18clusterSpec:
auth:
sasl:
enabled: truemechanism: SCRAM-SHA-512secretRef: "redpanda-superuser"# This user will be created and saved in the secretRefusers:
- name: superuserpassword: superuserpwdmechanism: SCRAM-SHA-512external:
enabled: truedomain: svc.cluster.localtype: NodePortstatefulset:
replicas: 1initContainers:
setDataDirOwnership:
enabled: trueconsole:
enabled: trueingress:
enabled: trueclassName: traefikhosts:
- host: svc.cluster.localpaths:
- path: /redpandapathType: Prefixconsole:
config:
server:
httpsListenPort: 443advertisedHttpsListenPort: 443listenPort: 8080tls:
enabled: truecertFilepath: /etc/tls/certs/default/tls.crtkeyFilepath: /etc/tls/certs/default/tls.keytls:
enabled: trueconfig:
cluster:
admin_api_require_auth: true
The deployed Pod yaml only contains the port 8080 and did not add a port for the configured httpsListenPort:
When deploying Redpanda and Console via the operator,
And enabling the TLS for the Console,
Then the created Deployment does not expose the HTTPS port
And therefore the Console cannot be used using HTTPS.
This is not strictly related to the Operator I think since Redpanda Console Helm chart does not add the additional HTTPS port in the Deployment template.
Since there is no option to add an additional port via the config, the HTTPS feature can be enabled but never used.
To replicate
Using a Redpanda cluster yaml which enabled TLS for Kafka and the console:
redpanda-cluster.yaml
The deployed Pod yaml only contains the port 8080 and did not add a port for the configured
httpsListenPort
:pod: redpanda-console-xxxxxxxx-xxxxx.yaml
When connecting to the Console on port 8080 (after port-forwarding it to localhost for testing), it returns
Port
443
can never be used since it is not exposed by the Pod.Similarly, the service does not expose the port:
service: redpanda-console.yaml
Workaround
When updating the Deployment of the console to add the additional port
Then port
443
is exposed and the Console can be accessed over HTTPS.Test environment
This is tested on a local K3D cluster setup with these steps:
The content of the
Redpanda-cluster.yaml
is listed above.The text was updated successfully, but these errors were encountered: