manage
apply-scc
Extended description
wkc
component.- Custom SCC for Watson™ Knowledge Catalog
- The
cpd-cli manage apply-scc
command creates thewkc-iis-scc
security context constraint and binds it to thewkc-iis-sa
service account.You must run this command in each project where you plan to install Watson Knowledge Catalog.
Watson Knowledge Catalog SCC definition
allowHostDirVolumePlugin: false allowHostIPC: false allowHostNetwork: false allowHostPID: false allowHostPorts: false allowPrivilegeEscalation: true allowPrivilegedContainer: false allowedCapabilities: null apiVersion: security.openshift.io/v1 defaultAddCapabilities: null fsGroup: type: RunAsAny kind: SecurityContextConstraints metadata: annotations: kubernetes.io/description: WKC/IIS provides all features of the restricted SCC but runs as user 10032. name: wkc-iis-scc readOnlyRootFilesystem: false requiredDropCapabilities: - KILL - MKNOD - SETUID - SETGID runAsUser: type: MustRunAs uid: 10032 seLinuxContext: type: MustRunAs supplementalGroups: type: RunAsAny volumes: - configMap - downwardAPI - emptyDir - persistentVolumeClaim - projected - secret users: - system:serviceaccount:cpd-instance:wkc-iis-sa
Syntax
cpd-cli manage apply-scc \
--cpd_instance_ns=<project-name> \
--components=<component-name>
[--preview=true|false] \
[-v][-vv][-vvv]
Arguments
The apply-scc
command has no arguments.
Options
Option | Description |
---|---|
--cpd_instance_ns |
The
project (namespace) where IBM Cloud Pak® for Data is
installed.
|
--components |
The component for which you want to create the custom SCC. Restriction: Currently, this command applies only to the
wkc
component.
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
-v -vv -vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- Create the SCC for Watson Knowledge Catalog
-
cpd-cli manage apply-scc \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --components=wkc
- Preview the
oc
commands to create the SCC for Watson Knowledge Catalog -
cpd-cli manage apply-scc \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --components=wkc \ --preview=true