Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 177 additions & 2 deletions modules/deploy/pages/console/kubernetes/deploy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
<2> For production, run at least two replicas for high availability and rolling upgrades.
<3> Adjust resource requests and limits based on your expected workload and available node resources.
<4> Use `LoadBalancer` for cloud environments or when you want Redpanda Console to be accessible from outside the cluster. Use `ClusterIP` for internal-only access.
<5> Enable and configure Ingress if you want to expose Redpanda Console using a domain name and use TLS/HTTPS. Make sure your cluster has an Ingress controller installed.
<5> Enable and configure Ingress if you want to expose Redpanda Console using a domain name and use TLS/HTTPS. Make sure your cluster has an Ingress controller installed. To use the Kubernetes Gateway API instead of Ingress, see <<expose-console-gateway-api,Expose Redpanda Console with the Gateway API>>.

. Apply the Console CR:
+
Expand Down Expand Up @@ -174,7 +174,7 @@ Look for services named like `redpanda-0`, `redpanda-1`, etc. The port is typica
<2> Adjust resource requests and limits based on your expected workload and available node resources.
<3> For production, run at least two replicas for high availability and rolling upgrades.
<4> Use `LoadBalancer` for cloud environments or when you want Redpanda Console to be accessible from outside the cluster. Use `ClusterIP` for internal-only access.
<5> Enable and configure Ingress if you want to expose Redpanda Console using a domain name and use TLS/HTTPS. Make sure your cluster has an Ingress controller installed.
<5> Enable and configure Ingress if you want to expose Redpanda Console using a domain name and use TLS/HTTPS. Make sure your cluster has an Ingress controller installed. To use the Kubernetes Gateway API instead of Ingress, see <<expose-console-gateway-api,Expose Redpanda Console with the Gateway API>>.

. Install the chart:
+
Expand Down Expand Up @@ -300,6 +300,181 @@ Redpanda Console now connects securely to your Redpanda cluster using TLS. For p
--
======

[[expose-console-gateway-api]]
== Expose Redpanda Console with the Gateway API

As an alternative to Ingress, you can expose Redpanda Console through a Kubernetes https://gateway-api.sigs.k8s.io/[Gateway API^] HTTPRoute. This feature is in beta and requires Redpanda Operator 26.2 or later, or Redpanda Helm chart 26.2.0 or later. Beta features are not recommended for production environments. The Gateway API separates infrastructure from application routing: your platform team manages a shared Gateway, which is the entry point that terminates TLS, and Redpanda Console attaches to that Gateway with an HTTPRoute that the Redpanda Operator or Helm chart renders and manages for you.

Choose the Gateway API over Ingress when your cluster already routes traffic through a Gateway controller, such as Envoy Gateway, Istio, Cilium, or NGINX Gateway Fabric, or when you want typed, role-based routing configuration instead of controller-specific Ingress annotations.

Ingress and the Gateway API are mutually exclusive for Redpanda Console: enabling both fails validation with `ingress and gateway cannot both be enabled; use one or the other`.

NOTE: With an HTTPRoute, TLS terminates at the Gateway's listener, so you configure the certificate on the Gateway resource instead of in the Redpanda Console configuration.

=== Prerequisites

Redpanda Console and the Redpanda Operator don't bundle Gateway API resources:

. Install the Gateway API CRDs and a compatible controller, such as https://gateway.envoyproxy.io/[Envoy Gateway^], https://istio.io/latest/docs/tasks/traffic-management/ingress/gateway-api/[Istio^], https://docs.cilium.io/en/stable/network/servicemesh/gateway-api/gateway-api/[Cilium^], or https://github.com/nginx/nginx-gateway-fabric[NGINX Gateway Fabric^]. For versions and installation steps, see the prerequisites in xref:manage:kubernetes/networking/external/k-gateway-api.adoc#prerequisites[Configure External Access through Gateway API]. HTTPRoute ships in the standard channel, so either release channel works for this feature.

. Create a Gateway for the HTTPRoute to attach to, or identify an existing one:
+
[,yaml]
.`gateway.yaml`
----
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: my-gateway
namespace: gateway-system
spec:
gatewayClassName: eg <1>
listeners:
- name: https
protocol: HTTPS
port: 443
tls:
mode: Terminate
certificateRefs:
- name: console-tls <2>
allowedRoutes:
namespaces:
from: All <3>
----
+
<1> The GatewayClass name depends on your controller. For example, Envoy Gateway installs `eg`.
<2> A Secret in the Gateway's namespace that contains the TLS certificate for your Redpanda Console hostname.
<3> The listener must allow routes from the namespace where Redpanda Console runs. `from: All` accepts routes from any namespace. Use `from: Selector` to restrict which namespaces can attach.

. Apply the manifest and verify that the controller accepts the listener:
+
[,bash]
----
kubectl apply -f gateway.yaml

kubectl get gateway my-gateway --namespace gateway-system \
-o jsonpath='{range .status.listeners[*]}{.name}: {range .conditions[*]}{.type}={.status} {end}{"\n"}{end}'
----
+
The listener reports `Accepted=True` and `Programmed=True`.

=== Enable the HTTPRoute

Configure the `gateway` block instead of the `ingress` block:

[tabs]
======
Operator::
+
--

. Add a `gateway` block to the Console resource:
+
[,yaml]
.`console.yaml`
----
apiVersion: cluster.redpanda.com/v1alpha2
kind: Console
metadata:
name: redpanda-console
namespace: redpanda
spec:
cluster:
clusterRef:
name: redpanda
gateway:
enabled: true
parentRefs: <1>
- name: my-gateway
namespace: gateway-system
sectionName: https
hostnames: <2>
- console.example.com
path: / <3>
pathType: PathPrefix
----
+
<1> References the Gateway that the HTTPRoute attaches to. `sectionName` optionally pins the route to one listener on that Gateway. Without `parentRefs`, Redpanda creates the HTTPRoute but it doesn't attach to any Gateway.
<2> The hostnames that the route matches. Point DNS for these hostnames at the Gateway's address.
<3> The path to match. `pathType` is one of `PathPrefix`, `Exact`, or `RegularExpression`.

. Apply the resource:
+
[,bash]
----
kubectl apply -f console.yaml --namespace redpanda
----

The operator creates the HTTPRoute and keeps it in sync with the Console resource.

--
Helm::
+
--

. Add a `gateway` block to your values file:
+
[,yaml]
.`console-values.yaml`
----
gateway: <1>
enabled: true
parentRefs:
- name: my-gateway
namespace: gateway-system
sectionName: https
hostnames:
- console.example.com
path: /
pathType: PathPrefix
----
+
<1> The fields have the same meaning as in the Console resource: `parentRefs` selects the Gateway (and optionally one listener through `sectionName`), `hostnames` lists the hostnames to match, and `pathType` is one of `PathPrefix`, `Exact`, or `RegularExpression`.

. Upgrade the release:
+
[,bash]
----
helm upgrade --install redpanda-console redpanda/console \
--namespace redpanda \
--values console-values.yaml
----

--
======

=== Verify the route

. Check that the HTTPRoute exists and that the Gateway accepted it:
+
[,bash]
----
kubectl get httproute --namespace redpanda
kubectl describe httproute redpanda-console --namespace redpanda
----
+
In the route's status, the `Accepted` and `ResolvedRefs` conditions are both `True` for the referenced Gateway. If `Accepted` is `False` with reason `NotAllowedByListeners`, update the Gateway listener's `allowedRoutes` to include the Redpanda Console namespace.

. Get the Gateway's external address and point DNS for your Redpanda Console hostname at it:
+
[,bash]
----
kubectl get gateway my-gateway --namespace gateway-system
----

. Confirm that Redpanda Console responds through the Gateway. Until DNS is in place, resolve the hostname to the Gateway address explicitly:
+
[,bash]
----
curl --resolve console.example.com:443:<gateway-address> https://console.example.com -I # Replace <gateway-address> with the address from the previous step.
----

=== Switch between Ingress and the Gateway API

To move an existing Redpanda Console deployment from Ingress to the Gateway API, remove or disable the `ingress` block and add the `gateway` block in the same update. The operator or chart deletes the Ingress and creates the HTTPRoute. Switching back works the same way in reverse: remove the `gateway` block, add the `ingress` block, and the operator or chart removes the HTTPRoute and creates an Ingress.

TIP: To expose the Redpanda cluster itself through the Gateway API, see xref:manage:kubernetes/networking/external/k-gateway-api.adoc[Configure External Access through Gateway API].

== Deploy Redpanda Console as standalone service with YAML manifests

If you prefer to deploy using YAML manifests, you can create the following resources:
Expand Down
6 changes: 6 additions & 0 deletions modules/get-started/pages/release-notes/operator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ The release also adds the xref:reference:rpk/rpk-k8s/rpk-k8s.adoc[`rpk k8s` plug

For deployment steps, see xref:deploy:redpanda/kubernetes/k-stretch-clusters.adoc[].

=== Gateway API support for Redpanda Console (beta)

The Console custom resource and the Redpanda Console Helm chart can expose Redpanda Console through a Kubernetes Gateway API HTTPRoute as an alternative to Ingress. You reference an existing Gateway in `gateway.parentRefs`, and the operator or chart renders and manages the HTTPRoute for you. You can enable only one of `gateway` or `ingress` at a time.

See xref:deploy:console/kubernetes/deploy.adoc#expose-console-gateway-api[Expose Redpanda Console with the Gateway API].

=== Safer rolling restarts with per-broker health probes

In Redpanda Operator v26.2.1 or later, the operator gates each step of a rolling restart with Redpanda's per-broker restart probes instead of a single cluster-wide health check. Before restarting a broker, the operator confirms that the restart cannot lose data acknowledged with `acks=1`, make partitions unavailable, or block `acks=all` produce requests. After each restart, the operator waits until the broker reports that it has fully resynced before restarting the next one, because a Pod can pass its readiness probe while the broker is still replaying partition state.
Expand Down
Loading