跳至内容

Kops 获取密钥

kops get secrets

获取一个或多个密钥。

kops get secrets [SECRET_NAME]... [flags]

示例

  # List the secrets
  kops get secrets

  # Get the admin static token for a cluster
  kops get secrets admin -oplaintext

选项

  -h, --help   help for secrets

从父命令继承的选项

      --config string   yaml config file (default is $HOME/.kops.yaml)
      --name string     Name of cluster. Overrides KOPS_CLUSTER_NAME environment variable
  -o, --output string   output format. One of: table, yaml, json (default "table")
      --state string    Location of state storage (kops 'config' file). Overrides KOPS_STATE_STORE environment variable
  -v, --v Level         number for the log level verbosity

另请参见

  • kops get - 获取一个或多个资源。