Kops 创建 SSH 公钥
kops 创建 SSH 公钥 ¶
创建一个 SSH 公钥。
概要 ¶
创建一个新的 SSH 公钥,并将密钥存储在状态存储中。此命令不会更新密钥。
kops create sshpublickey [CLUSTER] [flags]
示例 ¶
# Create a new SSH public key from the file ""~/.ssh/id_rsa.pub".
kops create sshpublickey k8s-cluster.example.com -i ~/.ssh/id_rsa.pub
选项 ¶
-h, --help help for sshpublickey
-i, --ssh-public-key string Path to SSH public key
从父命令继承的选项 ¶
--config string yaml config file (default is $HOME/.kops.yaml)
--name string Name of cluster. Overrides KOPS_CLUSTER_NAME environment variable
--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 create - 通过命令行、文件名或标准输入创建资源。