...
You can then use this image to create a cfssl service in your k8s cluster/.
kubectl create -f rapps-cfssl.yaml
Note if : If you want to use this with the a postgres db you'll need to setup a new schema database and username/password and then create the tables.
Code Block | ||||
---|---|---|---|---|
| ||||
SELECT 'CREATE DATABASE cfssl' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'cfssl')\gexec DO $$ BEGIN IF NOT EXISTS (SELECT FROM pg_user WHERE usename = 'cfssl') THEN CREATE USER cfssl WITH PASSWORD 'cfssl'; GRANT ALL PRIVILEGES ON DATABASE cfssl TO cfssl; END IF; END $$; |
...