Helm based Installation¶
Prerequisites¶
Before installing K10 on Red Hat OpenShift, please ensure that the install prerequisites are met.
K10 Install¶
Depending on your OpenShift infrastructure provider, you might need to provide access credentials as specified elsewhere for public cloud providers.
You will also need to add the following argument to create the SecurityContextConstraints for K10 ServiceAccounts.
OpenShift on AWS¶
When running OpenShift on AWS, please configure these policies before running the install command below.
OpenShift and CSI¶
Note
The feature flag mentioned below is only required for OpenShift 4.4 and earlier.
To use OpenShift and K10 with CSI-based volume snapshots,
the VolumeSnapshotDataSource
feature flag needs to be
enabled. From the OpenShift management console, as an administrator,
select Administration
→ Cluster Settings
→ Global
Configuration
→ Feature Gate
→ YAML
. The resulting
YAML should look like:
Accessing Dashboard via Route¶
As documented here, the K10 dashboard can also be accessed via an OpenShift Route.
Authentication¶
Kanister Sidecar Injection on OpenShift 3.11¶
To use the K10 Kanister sidecar injection feature on OpenShift 3.11, make sure that the MutatingAdmissionWebhook setting is enabled. If not, follow the steps below to enable it:
On a control plane node, add the following config to the admissionConfig.pluginConfig section of the /etc/origin/master/master-config.yaml file:
Restart control plane services with:
Validating the Install¶
To validate that K10 has been installed properly, the following
command can be run in K10's namespace (the install default is
kasten-io
) to watch for the status of all K10 pods:
It may take a couple of minutes for all pods to come up but all pods
should ultimately display the status of Running
.
In the unlikely scenario that pods that are stuck in any other state, please follow the support documentation to debug further.
Validate Dashboard Access¶
By default, the K10 dashboard will not be exposed externally.
To establish a connection to it, use the following kubectl
command
to forward a local port to the K10 ingress port:
The K10 dashboard will be available at http://127.0.0.1:8080/k10/#/.
For a complete list of options for accessing the Kasten K10 dashboard through a LoadBalancer, Ingress or OpenShift Route you can use the instructions here.