kubectl create secret
command will create a base64 encoded K8s secret. You can directly provide CLOUDTRUTH_API_KEY="YOUR_TOKEN"
as a literal to use in your pods with the CloudTruth CLI.CLOUDTRUTH_API_KEY
created in CloudTruth and use the following cli command to retrieve and pass the value in one step.envFrom
.flask-configmap
in project Flask
.demokubetruth
. Provide your CloudTruth API Key and the targeted CloudTruth environment.app.kubernetes.io/managed-by: kubetruth
Project Mapping
Custom Resource Definition. This allows you to manage resources with standard K8s practices.projectMappings.root.spec.context.resource_namespace
to create a namespace per CloudTruth project.projectMappings.root.spec.included_projects
which will import all Parameters from a CloudTruth project named base
into our other configmaps and secrets.kind: ProjectMapping
with an override scope for customization of naming conventions and key filters. This allows you to create custom configmaps and secrets that do not have to follow the exact project layout in CloudTruth.MY_PROJECT
.FOO
.custom-name
custom-ns-name
root
and override
configurations with kubectl.kubectl get projectmapping -A
templates.NAME
. The following override will apply CloudTruth template game-demo-template
in project configmap
. The template is formed as a ConfigMap in CloudTruth.Project Mapping
Custom Resource Definition with Helm. All of the current override specs can be used at install time.root
to skip all projects on installation. It then specifies an override CRD called myoverride
that will select project MY_PROJECT
to be the only one configured at install time.app.kubernetes.io/managed-by: kubetruth