How to integrate DSM with Kubernetes
  • 1 minute to read
  • Dark
    Light
  • PDF

How to integrate DSM with Kubernetes

  • Dark
    Light
  • PDF

Article summary

Requirements:

  1. You should have Kubernetes properly installed.
  2. You should have the kubectl tool installed.
Info

Configuration in the senhasegura

  1. Create an Access Group in the DSM.
  2. Create a Secret in senhasegura.
  3. Create an Application in senhasegura.
  4. Create an Authorization for the newly created application.
  5. Add the Secret to the Authorization of the application.
  6. Copy the values of the Client ID and Client Secret fields from the application's authorization.
  7. Create a file with the .yml extension in Kubernetes.
  8. Fill in the .yml file with the Client ID and Client Secret values you copied earlier.
  9. Execute the following command: kubectl apply -f nomedoarquivo.ymlc

In Kubernetes, follow the steps in the senhasegura documentation on External Secrets, available at senhasegura DevOps Secrets Management (DSM).

By following these steps, the integration between DSM and Kubernetes via External Secrets will be configured, guaranteeing secure and effective management of the sensitive information needed to operate your environment

Validate the integration

CommandDescription
kubectl get externalsecret -o wideCheck the synchronization status.
kubectl describe externalsecret example-secretCheck the synchronization status.
kubectl get pods -ACheck the Pod creation.
kubectl get secrets/example-secret -n namespace -o yamlCheck the External Secrets contents.
kubectl get secrets/example-secret -o yamlCheck if the synchronized secret has been created and that the data has been retrieved.
kubectl logs -f pod/external-secrets-<CHANGEME> -n external-secretsCheck the External Secrets logs.

Do you still have questions? Reach out to the senhasegura Community.


Was this article helpful?