Skip to content

No way to fetch username and password for kubernetes applications programmatically #389

Description

@fernando-villalba

Issue

We need to have a way to programmatically get relevant information from installed apps/addons in the Kubernetes clusters.

For example if I want to programmatically fetch username and password of the database I added to the cluster in a script, it is not possible with the CLI, you need to go via the UI or other methods.

How to replicate

1. Create a cluster with an addon on the CLI and fetch the output

These three commands will create a cluster, install an app in the cluster and then show information about that app.

civo k3s create  --size g4s.kube.xsmall --nodes 1 test-fetch-output
civo kubernetes applications add postgresql:5GB --cluster test-fetch-output
civo k3s apps show Postgresql test-fetch-output

The output provided by the last command only serves to provide information. It does not give a password and username for the database.

Acceptance Criteria

Provide a command that outputs username, password and any other relevant configuration outputs.

This can be part of the show command with another flag, or yet another subcommand from civo kubernetes apps such as civo kubernetes apps config

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions