Go to file
Victoria Nadasdi d0ec32e727 Update 'README.md' 2020-03-27 16:47:18 +00:00
web-apps add mysql 2019-11-11 09:29:59 +01:00
README.md Update 'README.md' 2020-03-27 16:47:18 +00:00
busybox.yaml ssl on postgres 2020-03-27 13:40:30 +01:00
helper.zsh use --context option instead of changing context back and forth 2019-11-11 10:38:43 +01:00
test.py ssl on postgres 2020-03-27 13:40:30 +01:00



All the passwords in there are placeholders, change it for your own environments.

The only purpose of this repository it to pass the butter give an example during private Kube class.


local-kubernetes on  master
[I]  cd web-apps/postgres

local-kubernetes/web-apps/postgres on  master
[I]  kubectl config use-context docker-desktop
Switched to context "docker-desktop".

local-kubernetes/web-apps/postgres on  master
[I]  for f in namespace.yaml pv.yaml configmap.yaml deployment.yaml service.yaml; do
 kubectl apply -f $f
namespace/web-apps unchanged
persistentvolume/postgres-pv-volume unchanged
persistentvolumeclaim/postgres-pv-claim unchanged
configmap/postgres-config unchanged
deployment.extensions/postgres unchanged
service/postgres unchanged

local-kubernetes/web-apps/postgres on  master
[I]  connect-to-postgres
psql (11.4)
Type "help" for help.


Enable SSL

cd /Users/yitsushi/.pv/web-apps/postgres
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req -keyout privkey.pem
openssl rsa -in privkey.pem -passin pass:abcd -out server.key
openssl req -x509 -in server.req -text -key server.key -out server.crt
chmod 600 server.key

Update config