Use this task to manage the deployment operation of on-premises
components.
Before you begin
- Deployment needs to be done on Linux®. Preferably on
RHEL 8.x/7.x/ubuntu/centos.
- Docker or Podman and Docker Compose must be installed and configured on the Linux node. For Docker Compose installation follow the
instruction at https://docs.docker.com/compose/install/.
Procedure
- For deployment on Docker or Podman container environment.
- Unzip the package.
- Go to Docker compose directory.
- Use the yml file from the zip to deploy the containers on the
on-premises docker-host by using this command.
docker-compose -f <agent-name>-docker-compose.yml pull
docker-compose -f <agent-name>-docker-compose.yml up -d
- For deployment on OpenShift®
environment.
- Unzip the package.
- Go to Kubernetes directory.
- Create persistent volume for Identity-brokerage and postures container. Below section
is an example for creation of NFS type persistent volume where the server and
path input should be updated.
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-broker
spec:
capacity:
storage: 1Gi
nfs:
server: <Hostname/IP of nfs server>
path: <dir path on nfs server>
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
#storageClassName: ""
volumeMode: Filesystem
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-db
spec:
capacity:
storage: 50Gi
nfs:
server: <Hostname/IP of nfs server>
path: <dir path on nfs server>
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
#storageClassName: ""
volumeMode: Filesystem
- Use the yml from the zip to deploy.
- For Red Hat® OCP environment.
- oc create -f <agent-name>-k8s-deployment.yml
- For Native Kubernetes environment.
-
kubectl create -f <agent-name>-k8s-deployment.yml
Note: Refer to the ReadMe available in the zip for permission and ownership of NFS directory.