文档

​
​

Development

User Acquisition

Monetization

工业

Self-Hosted Deployment

Amazon Web Services

Microsoft Azure

On premises

vpctl

Self-Hosted Deployment

此页面不支持所选语言。
​
​
Self-Hosted Deployment
  • Overview
  • Amazon Web Services
  • Microsoft Azure
  • On premises
  • Administration
  • Security
  • vpctl
    • vpctl Architecture
    • Installation
    • Manifest reference
    • vpctl commands
      • Artifact
      • Cluster
      • Configure
      • Manifest
      • Release
      • Secret
    • Troubleshooting
    • Changelog
  1. Self-Hosted Deployment (previously called Unity Virtual Private Cloud)
  2. vpctl command-line tool
  3. vpctl command reference

vpctl secret commands

Generate and deploy Kubernetes Secret manifests from a secrets.import.yaml input
阅读时间2 分钟
最后更新于 11 天前

Use the
secret
command group to render Kubernetes
Secret
manifests from your import file and apply them to your cluster.

Generate secrets

Create Kubernetes secret YAML files from your secret definitions. For the import file format, refer to
secrets.import.example.yaml
which is shipped in the release package.
vpctl secret generate --import secrets.import.yaml --use-defaults
Parameters:
  • --import
    : Path to the secrets import file. See
    secrets.import.example.yaml
    for the format.
  • --use-defaults
    : Use default values or auto-generate values without prompts (non-interactive mode). If a required field has no default or auto-generate option, the tool writes
    TBD
    and logs a warning so you can update it before deployment.
  • --output
    : Output file path (defaults to
    secrets.yaml
    ).
  • --name
    : Generate only the specified secret by name.
  • --extracted-release
    : Path to the extracted release directory (defaults to
    ./extracted-release
    ).
  • --clean-output
    : Clear the output file before generating (default: false).
  • --skip-version-check
    : Skip the vpctl version compatibility check against the release package.
  • --persist <path>
    : Save generated values to an import-format file at
    <path>
    for reuse in subsequent runs. The path is required and has no default: in vpctl 0.11.0 and newer, passing the bare flag exits with an error. On later runs, the tool loads the persisted file and reuses existing values without regenerating them.
Example:
vpctl secret generate --import secrets.import.yaml --use-defaults --output ./generated-secrets.yaml

Deploy secrets to Kubernetes

Apply the generated secrets to your Kubernetes cluster:
vpctl secret deploy
Common options:
  • --file
    : Path to the secrets YAML file (defaults to
    secrets.yaml
    ).
  • --dry-run
    : Preview the kubectl command without executing it.
  • --context
    : Kubernetes context to use.
  • --namespace
    : Kubernetes namespace (overrides the namespace in the secret YAML).
Example:
vpctl secret deploy --file ./generated-secrets.yaml --namespace production --dry-run

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Generate secrets

    • Deploy secrets to Kubernetes


报告此页面的问题