Posts

Showing posts from May, 2022

Mounting Single File From Configuration Map In Kubernetes/Openshift Pod

Image
 Background Sometimes, we need to override a single file in a pod without having to build a new image. There is a technique to do this, so this blog would serve to remind me of the steps involved doing just that. 1. Create A Configuration Map First we need to copy the original file to the notepad. The steps are : yudhi@Yudhis-MacBook-Pro ~ % oc project apifinance Now using project "apifinance" on server "https://lb.osh.telkom.co.id:8443". yudhi@Yudhis-MacBook-Pro ~ % oc get po NAME                     READY     STATUS       RESTARTS   AGE finance-2-chm5g         1/1       Running     0           211d finance-3-build         0/1       Completed   0           248d financeapi-46-8wmfh     1/1       Running     0           30d proxy-finest-10-1btmq   1/1       Running     0           58d yudhi@Yudhis-MacBook-Pro ~ % oc rsh proxy-finest-10-1btmq sh-4.4$ cd /etc/httpd sh-4.4$ ls conf   conf.d   conf.modules.d   logs   modules   run   state sh-4.4$ cd conf.d sh-4.4$ ls REA