You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to switch target cluster using '--kubeconfig' flag, but It doesn't seem to work.
(kubectl-ai still tries to use the default config file.)
Am i missing something?
log
$ kubectl-ai "create an nginx deployment with 3 replicas" --kubeconfig="{path}/{to}/config"
✨ Attempting to apply the following manifest:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
✔ Apply
Error: Get "https://127.0.0.1:49355/api": dial tcp 127.0.0.1:49355: connect: connection refused
Usage:
kubectl-ai [flags]
Flags:
--as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uid string UID to impersonate for the operation.
--azure-openai-endpoint string The endpoint for Azure OpenAI service. If provided, Azure OpenAI service will be used instead of OpenAI service.
--cache-dir string Default cache directory (default "/Users/mzc01-glee/.kube/cache")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
--disable-compression If true, opt-out of response compression for all requests to the server
-h, --help help for kubectl-ai
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
-n, --namespace string If present, the namespace scope for this CLI request
--openai-api-key string The API key for the OpenAI service. This is required. (default "***")
--openai-deployment-name string The deployment name used for the model in OpenAI service. (default "text-davinci-003")
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
--require-confirmation Whether to require confirmation before executing the command. Defaults to true. (default true)
-s, --server string The address and port of the Kubernetes API server
--temperature float The temperature to use for the model. Range is between 0 and 1. Set closer to 0 if your want output to be more deterministic but less creative. Defaults to 0.0.
--tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
-v, --version version for kubectl-ai
Get "https://127.0.0.1:49355/api": dial tcp 127.0.0.1:49355: connect: connection refused
The text was updated successfully, but these errors were encountered:
description
Hi team.
I want to switch target cluster using '--kubeconfig' flag, but It doesn't seem to work.
(kubectl-ai still tries to use the default config file.)
Am i missing something?
log
The text was updated successfully, but these errors were encountered: