mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 21:27:31 +00:00
improve k8 operator docs
This commit is contained in:
@@ -38,7 +38,7 @@ The operator can be install via [Helm](helm.sh) or [kubectl](https://github.com/
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
## Sync Infisical Secrets to your cluster
|
## Sync Infisical Secrets to your cluster
|
||||||
To retrieve secrets from an Infisical project and save them as native Kubernetes secrets within a specific namespace, utilize the `InfisicalSecret` custom resource definition (CRD).
|
Once you have installed the operator to your cluster, you'll need to create a `InfisicalSecret` custom resource definition (CRD).
|
||||||
|
|
||||||
```yaml example-infisical-secret-crd.yaml
|
```yaml example-infisical-secret-crd.yaml
|
||||||
apiVersion: secrets.infisical.com/v1alpha1
|
apiVersion: secrets.infisical.com/v1alpha1
|
||||||
@@ -151,6 +151,14 @@ The managed secret be should be created in the same namespace as the deployment
|
|||||||
|
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
|
### Apply the Infisical CRD to your cluster
|
||||||
|
Once you have configured the Infisical CRD with the required fields, you can apply it to your cluster.
|
||||||
|
After applying, you should notice that the managed secret has been created in the desired namespace your specified.
|
||||||
|
|
||||||
|
```
|
||||||
|
kubectl apply -f example-infisical-secret-crd.yaml
|
||||||
|
```
|
||||||
|
|
||||||
### Verify managed secret creation
|
### Verify managed secret creation
|
||||||
|
|
||||||
To verify that the operator has successfully created the managed secret, you can check the secrets in the namespace that was specified.
|
To verify that the operator has successfully created the managed secret, you can check the secrets in the namespace that was specified.
|
||||||
|
|||||||
Reference in New Issue
Block a user