|
11 months ago | |
---|---|---|
web-apps | 1 year ago | |
README.md | 11 months ago | |
busybox.yaml | 11 months ago | |
helper.zsh | 1 year ago | |
test.py | 11 months ago |
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
❯ 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=#
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