This Gist shows you how to create a simple dhparam secret directly within your cluster using a Job and RBAC.
After the job completed successfully, you'll have a secret dhparam
within
your default namespace with dhparam.pem
inside.
# build and push container
docker build -t gcr.io/PROJECT_ID/kubectl:latest -f Dockerfile .
docker push gcr.io/PROJECT_ID/kubectl:latest
# start job
kubectl apply -f dhparam.yaml
# This is going to take a long time ...
You won't need the job, cluste role and bindings after generating the DH params
kubectl delete -f dhparam.yaml