You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Efertone d0ec32e727 Update 'README.md' 1 year ago
web-apps add mysql 2 years ago
README.md Update 'README.md' 1 year ago
busybox.yaml ssl on postgres 1 year ago
helper.zsh use --context option instead of changing context back and forth 2 years ago
test.py ssl on postgres 1 year ago

README.md

local-kube

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.

Example

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
❯ done;
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.

postgresdb=#

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