Agnostic Guides
đŸ“˜Container Deployment Guide
Step by Step Deployment OCP
6 min
intro example how to deploy on red hat openshift container platform ( rh ocp ) use configmap for configuration no rwx storage gui read only bash/shell commands to deploy on rh ocp \##set vars to use in script vfns="dflow ns" vflocalfilepath="/home/myuser/dflow files" \#make local folder mkdir p $vflocalfilepath/$vfns/ssl cert mkdir p $vflocalfilepath/$vfns/config mkdir p $vflocalfilepath/$vfns/sap cert \##copy the main ini file to the 'config' file \##copy the 'certificate crt' and 'cert private key' to the 'ssl cert folder \##copy the cs1p81 y7 cer to the 'sap cert' folder, after send cert in sap check /dflow/config/certificates folder for the cert \### naming convention is <\<content system>> <\<archive name>> cer \## create ns kubectl create namespace $vfns \##set as default ns kubectl config set context current namespace=$vfns \## create image pull secret ## kubectl n $vfns create secret docker registry image repo login secret \\ \ docker username=my username \\ \ docker password=pass123 \\ \ docker server=versafile azurecr io \\ \ docker email=dummy\@localdummy local \##deploy config (via configmaps and secret) \#kubectl n $vfns delete cm dflow config kubectl n $vfns create configmap dflow config from file=$vflocalfilepath/$vfns/config \## import ssl cert and key as secret \#kubectl n $vfns delete secret dflow x509 kubectl n $vfns create secret tls dflow x509 \\ \ cert=$vflocalfilepath/$vfns/ssl cert/certificate crt \\ \ key=$vflocalfilepath/$vfns/ssl cert/cert private key \##add sap certs we trust (seckey sigvalidation) as secret \#kubectl n $vfns delete secret dflow sap cert kubectl n $vfns create secret generic dflow sap cert from file=$vflocalfilepath/$vfns/sap cert \##yaml with deployment and service kind kubectl n $vfns apply f dflow deploy yml \## deploy route for gui and cs \## modify first to set the hostname to correct hostname \#check hostname yq spec host route dflow cs yaml kubectl n $vfns apply f route dflow gui yaml kubectl n $vfns apply f route dflow cs yaml \##tips how to scale up/down yaml files https //archbee doc uploads s3 amazonaws com/yogfzux1 8bfhhcr8vhde 6z5 lpb9snqaqm dsabu6 20250711 221122 yml https //archbee doc uploads s3 amazonaws com/yogfzux1 8bfhhcr8vhde qq i0ivitt45t2did ih3 20250711 221123 yaml https //archbee doc uploads s3 amazonaws com/yogfzux1 8bfhhcr8vhde abijoauzgcylzzkxitrbf 20250711 221123 yaml example of config folders https //archbee doc uploads s3 amazonaws com/yogfzux1 8bfhhcr8vhde wxkhplg6v8pwfyqpelpwb 20250711 220552 ini https //archbee doc uploads s3 amazonaws com/yogfzux1 8bfhhcr8vhde lruduewctry72t cqlzm2 20250711 220641 properties