Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Module included in the following assemblies:
//
// * storage/container_storage_interface/persistent-storage-csi-secrets-store.adoc
//

:_mod-docs-content-type: PROCEDURE
[id="persistent-storage-csi-secrets-store-driver-install-cli_{context}"]
= Installing the {secrets-store-driver} by using the CLI

[role="_abstract"]
The {secrets-store-driver} is typically installed in namespace `openshift-cluster-csi-drivers` which is already present in the cluster as part of installation of the cluster storage Operator.

.Prerequisites

The namespace and the operatorgroup must exist already.

.Procedure

. Create a `Subscription` object by defining a YAML file with the following content:
+
The following is an example of a `subscription.yaml` file.
+
[source,yaml]
----
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: secrets-store-csi-driver-operator
  namespace: openshift-cluster-csi-drivers
spec:
  channel: stable
  installPlanApproval: Automatic
  name: secrets-store-csi-driver-operator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
----

. create the driver with a command:
+
[source,terminal]
----
$ cat <<EOF | oc apply -f -
----
+
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
  name: secrets-store.csi.k8s.io
spec:
  managementState: Managed
----
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ include::modules/persistent-storage-csi-secrets-store-network-policies.adoc[leve

include::modules/persistent-storage-csi-secrets-store-driver-install.adoc[leveloffset=+1]

include::modules/persistent-storage-csi-secrets-store-driver-install-cli.adoc[leveloffset=+1]

.Next steps

* xref:../../nodes/pods/nodes-pods-secrets-store.adoc#mounting-secrets-external-secrets-store[Mounting secrets from an external secrets store to a CSI volume]
Expand Down