ISTIOCTL-CREATE-REMOTE-SECRET(1)
π istioctl-create-remote-secret β like, the manual page β¨
Okay bestie, so this is the istioctl-create-remote-secret page from the istioctl manual, and it's genuinely one of the more iconic little commands ngl π
πΈ NAME πΈ
istioctl-create-remote-secret β create a secret with credentials that let Istio access remote Kubernetes apiservers π«Ά
π SYNOPSIS π
istioctl create-remote-secret [flags]
β¨ DESCRIPTION β¨
Okay so, the whole vibe: this command creates a secret with credentials to allow Istio to access remote Kubernetes apiservers. That's the entire job. It makes the little handshake token so your Istio can go talk to a Kubernetes apiserver somewhere else. Lowkey essential for multi-cluster stuff, no cap π₯
π OPTIONS π
--auth-plugin-config=[]β authenticator plug-in configuration π§. Heads up:--auth-type=pluginmust be set alongside this option.--auth-plugin-name=""β the authenticator plug-in name. Same deal:--auth-type=pluginmust be set alongside this option.--auth-type=bearer-tokenβ which type of authentication to use. supported values =[bearer-token plugin].--create-service-account[=true]β iftrue, the service account needed for creating the remote secret will be created if it doesn't already exist. so like, it'll spawn it for you instead of you having to go make it yourself πββοΈ-h,--help[=false]β help forcreate-remote-secret. the classic.-d,--manifests=""β specify a path to a directory of charts and profiles (e.g.~/Downloads/istio-1.31.3/manifests). yes that exact path is the example, keep it π--name=""β name of the local cluster whose credentials are stored in the secret. If a name isn't specified, thekube-systemnamespace's UUID of the local cluster will be used. so like, it'll auto-name your baby for you π--secret-name=""β the name of the specific secret to use from the service-account. Needed when there are multiple secrets in the service account. iykyk π--server=""β the address and port of the Kubernetes API server.--service-account=""β create a secret with this service account's credentials. Default value is"istio-reader-service-account"if--typeis"remote", and"istiod"if--typeis"config". the way it just picks for you based on type, obsessed π--tls-server-name=""β the server name that should be validated by kube-client during establishing TLS connection with kube-apiserver π--type=remoteβ type of the generated secret. supported values =[remote config].
π OPTIONS INHERITED FROM PARENT COMMANDS π
These ones come from the parent command, so they're just... already there for you. free real estate β¨
--as=""β username to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group=[]β group to impersonate for the operation. This flag can be repeated to specify multiple groups. stack 'em π«Ά--as-uid=""β UID to impersonate for the operation.--context=""β Kubernetes configuration context.-i,--istioNamespace="istio-system"β Istio system namespace. default isistio-system, as it should be π--kubeclient-timeout="15s"β Kubernetes client timeout as atime.Durationstring, defaults to 15 seconds.-c,--kubeconfig=""β Kubernetes configuration file.-n,--namespace=""β Kubernetes namespace.--vklog=0β number for the log level verbosity. Like-vflag. ex:--vklog=9. go off with the verbosity if you want π
π¦ EXAMPLE π¦
# Create a secret to access cluster c0's apiserver and install it in cluster c1.
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
| kubectl --kubeconfig=c1.yaml apply -f -
# Delete a secret that was previously installed in c1
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
| kubectl --kubeconfig=c1.yaml delete -f -
# Create a secret access a remote cluster with an auth plugin
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 --auth-type=plugin --auth-plugin-name=gcp \
| kubectl --kubeconfig=c1.yaml apply -f -
like, look at that pipe. the way it just flows into kubectl ππ iconic behaviour.
β SEE ALSO β
istioctl(1)β the parent, the main character, the whole reason we're here π
ngl bestie, if you're doing multi-cluster Istio stuff, this is the one. read the flags, pick your --type, and let it cook π₯
mwah π this page was auto generated by spf13/cobra, and it's dated Jan 1980 β yes the date is silly, no I don't make the rules πβ¨
π¦ where this page comes from
- nixpkgs unstable: istioctl 1.31.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms