How to pre-install CustomResourceDefinitions as a Kubernetes admin.
Prerequisites
Audience: IT Professional Difficulty: Basic Time needed: Approximately 10 minutes Tools required:
kubectl
helm
tar
The Kong component of ThreadFix requires CustomResourceDefinitions, CRDs, to function. If the user managing ThreadFix does not have the required permissions to create these resources, they can be installed and administered separately by a cluster admin.
The following must be performed by a user with create customresourcedefinition permissions
Verify that the current user has permission to create customresourcedefinitions:
tar -zvxf threadfix-*.tgz threadfix/charts/kong/crds
Apply the CRDs for kong:
kubectl apply -f threadfix/charts/kong/crds
After the CRDs have been created on the Kubernetes cluster, the user that will install ThreadFix will need to verify that they have access to create resources under these new CRDs.
The following should be performed by the user who will install ThreadFix
Verify that the user has the ability to create resources for the new CRDs:
A user without create permissions on CRDs can install ThreadFix by following the Install with Helm and appending --skip-crds to the helm install command.