Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagetext
titlecfssl create db and user
    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
    $$;

...