Test-project for certmanager-related stuff.
Easily create a local kubernetes cluster and install certmanager.
Initially testing overwriting cert manager dns config for faster completion of DNS01 challenges (ref. local/values.yaml)
Note: All make
commands are ran from root directory of this repository, make sure to clone it to your local environment.
Start by installing the Requirements.
make kind
This starts up Kind cluster with local registry.
make certmanager
This command will fail if cluster context is not 'kind-kind'.
Tested with Cloudflare DNS.
-
Create api-key secret (
./create-cloudflare-api-secret.sh
) (note: add api-key)In cloudflare create key with these permissions:
nkzk.no (domain) - DNS:Read, DNS:Edit
-
Create (Cluster)Issuer
kubectl apply -f ./issuer.yaml
-
Create certificate
kubectl apply -f ./certificate.yaml
Cleanup/Destroy local environment:
`make destroy`