From 956fb2efb4b3dd06500d0c43f52692999c9b8667 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Fri, 10 Jan 2025 20:16:30 +0100 Subject: [PATCH] docs: better k8s pre-req --- .../kubernetes/infisical-dynamic-secret-crd.mdx | 6 ++++-- .../kubernetes/infisical-push-secret-crd.mdx | 11 ++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/integrations/platforms/kubernetes/infisical-dynamic-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-dynamic-secret-crd.mdx index 637e662bb..f06ef6f72 100644 --- a/docs/integrations/platforms/kubernetes/infisical-dynamic-secret-crd.mdx +++ b/docs/integrations/platforms/kubernetes/infisical-dynamic-secret-crd.mdx @@ -15,8 +15,10 @@ This CRD offers the following features: - **Optionally trigger redeployments** of any workloads that consume the secret if you enable auto-reload. ### Prerequisites -- The operator is installed on to your Kubernetes cluster -- You have already configured a dynamic secret in Infisical +- A project within Infisical. +- A [machine identity](/docs/documentation/platform/identities/overview) ready for use in Infisical that has permissions to create dynamic secret leases in the project. +- You have already configured a dynamic secret in Infisical. +- The operator is installed on to your Kubernetes cluster. ## Configure Dynamic Secret CRD diff --git a/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx index d3427cfe3..178b8059b 100644 --- a/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx +++ b/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx @@ -15,8 +15,13 @@ This CRD offers the following features: - **Create Secrets** in Infisical and manage its lifecycle. - **Automatic secret deletion** when the InfisicalPushSecret CRD is deleted. +### Prerequisites -### Example usage +- A project within Infisical. +- A [machine identity](/docs/documentation/platform/identities/overview) ready for use in Infisical that has permissions to create secrets in your project. +- The operator is installed on to your Kubernetes cluster. + +## Example usage Below is a sample InfisicalPushSecret CRD that pushes secrets defined in a Kubernetes secret to Infisical. @@ -97,7 +102,7 @@ After applying the soruce-secret.yaml file, you are ready to apply the Infisical After applying the InfisicalPushSecret CRD, you should notice that the secrets you have defined in your source-secret.yaml file have been pushed to your specified destination in Infisical. -### InfisicalPushSecret CRD properties +## InfisicalPushSecret CRD properties If you are fetching secrets from a self-hosted instance of Infisical set the value of `hostAPI` to @@ -397,7 +402,7 @@ After applying the InfisicalPushSecret CRD, you should notice that the secrets y -### Applying the InfisicalPushSecret CRD to your cluster +## Applying the InfisicalPushSecret CRD to your cluster Once you have configured the `InfisicalPushSecret` CRD with the required fields, you can apply it to your cluster. After applying, you should notice that the secrets have been pushed to Infisical.