Skip to content

Deploy stack with configs/secrets from file, manage configs/secrets #24

Description

@kaotika

Problem

At the moment you can't deploy a stack with non existing configs/secrets. Only external=true is possible.

Goal

  1. Similar behaviour like docker stack deploy -c stack.yml test --> deployment of a stack with configs/secrets imported from file.
configs:
  server-config:
    file: config.json
  1. actions to create a single config/secrets from file, like docker config create server-config ./config.json or docker secret create my_secret ./secret.json
  2. actions to show configs/secrets, like docker config ls or docker secret ls
  3. actions to delete a single configs/secrets

CLI

psu config create server-config ./config.json
psu secret create my_secret ./secret.json
psu config ls
psu secret ls
psu config delete server-config
psu secret delete my_secret

Possible Applications

  • replace docker cli for local deployments to make use of rbac
  • CI/CD deployment of stacks

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

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions