Hi, community, can anyone tell me should I SET KUB...
# ask-the-community
l
Hi, community, can anyone tell me should I SET KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT env variables ?
Copy code
flyteadmin# flyte start --config flyte-single-binary-local.yaml
Copy code
INFO[0000] Using config file: []
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"error","msg":"Failed to create controller manager. error building Kubernetes Clientset: Cannot get InCluster kubeconfig: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined","ts":"2023-07-14T22:56:12+08:00"}
{"json":{},"level":"panic","msg":"Failed to start Propeller, err: error building Kubernetes Clientset: Cannot get InCluster kubeconfig: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined","ts":"2023-07-14T22:56:12+08:00"}
panic: (*logrus.Entry) 0xc0007882a0

goroutine 117 [running]:
<http://github.com/sirupsen/logrus.(*Entry).log(0xc0007881c0|github.com/sirupsen/logrus.(*Entry).log(0xc0007881c0>, 0x0, {0xc0001aa700, 0xd2})
        /root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:259 +0x45b
<http://github.com/sirupsen/logrus.(*Entry).Log(0xc0007881c0|github.com/sirupsen/logrus.(*Entry).Log(0xc0007881c0>, 0x0, {0xc00126de68?, 0x1?, 0x1?})
        /root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:293 +0x4f
<http://github.com/sirupsen/logrus.(*Entry).Logf(0xc0007881c0|github.com/sirupsen/logrus.(*Entry).Logf(0xc0007881c0>, 0x0, {0x30e2999?, 0x10?}, {0xc000bb8220?, 0x10?, 0xc0000a0800?})
        /root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:338 +0x85
<http://github.com/sirupsen/logrus.(*Entry).Panicf(0x3fd08e0|github.com/sirupsen/logrus.(*Entry).Panicf(0x3fd08e0>?, {0x30e2999?, 0x416667?}, {0xc000bb8220?, 0x2a09ea0?, 0x1?})
        /root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:376 +0x34
<http://github.com/flyteorg/flytestdlib/logger.Panicf({0x3fd08e0|github.com/flyteorg/flytestdlib/logger.Panicf({0x3fd08e0>?, 0xc0007a8bc0?}, {0x30e2999, 0x22}, {0xc000bb8220, 0x1, 0x1})
        /root/go/pkg/mod/github.com/flyteorg/flytestdlib@v1.0.19/logger/logger.go:188 +0x64
<http://github.com/flyteorg/flyte/cmd/single.glob..func4.2()|github.com/flyteorg/flyte/cmd/single.glob..func4.2()>
        /mnt/c/code/dev/flyte/cmd/single/start.go:185 +0xbe
<http://golang.org/x/sync/errgroup.(*Group).Go.func1()|golang.org/x/sync/errgroup.(*Group).Go.func1()>
        /root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64
created by <http://golang.org/x/sync/errgroup.(*Group).Go|golang.org/x/sync/errgroup.(*Group).Go>
        /root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5
k
where is your KUBECONFIG
you have to replace this path to your KUBECONFIG
l
I will try it
thank you !
cat ~/.kube/config
Copy code
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyT0Rrek5EZzBPVFl3SGhjTk1qTXdOekUwTVRVeU9ERTJXaGNOTXpNd056RXhNVFV5T0RFMgpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyT0Rrek5EZzBPVFl3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFRUXJ0QkxWQUxvMEpYNWtVSWRKL0dCYVU4aDBnTjlCRXRzSWxTV3RhbEgKc1RSSXJFTU9rQThLUGdOYkIzSU5hYUJzeXpoVS82UXkrSE44SUorTk1Rb2xvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVXR5T3BBcU44WVV1NkJOMlg4OUU4CjBRQ3NldTh3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUx5OWZrN0svOE9FZHhNYndWNDdxTmYwUnlRNURXKzgKalFHSmRpdVR2Sm5DQWlFQTlZN2NlUHYyaWdPYUtrZlpZdGhEUDAvQm9CL2ViQ2hJdTMzZ21QcFNuNFE9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
    server: <https://127.0.0.1:6443>
  name: flyte-sandbox
- cluster:
    certificate-authority: /root/.minikube/ca.crt
    extensions:
    - extension:
        last-update: Fri, 14 Jul 2023 08:44:10 CST
        provider: <http://minikube.sigs.k8s.io|minikube.sigs.k8s.io>
        version: v1.30.1
      name: cluster_info
    server: <https://127.0.0.1:32769>
  name: minikube
contexts:
- context:
    cluster: flyte-sandbox
    user: flyte-sandbox
  name: flyte-sandbox
- context:
    cluster: minikube
    extensions:
    - extension:
        last-update: Fri, 14 Jul 2023 08:44:10 CST
        provider: <http://minikube.sigs.k8s.io|minikube.sigs.k8s.io>
        version: v1.30.1
      name: context_info
    namespace: default
    user: minikube
  name: minikube
current-context: flyte-sandbox
kind: Config
preferences: {}
users:
- name: flyte-sandbox
  user:
    client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJrRENDQVRlZ0F3SUJBZ0lJZlZnM0Z2SXhERE13Q2dZSUtvWkl6ajBFQXdJd0l6RWhNQjhHQTFVRUF3d1kKYXpOekxXTnNhV1Z1ZEMxallVQXhOamc1TXpRNE5EazJNQjRYRFRJek1EY3hOREUxTWpneE5sb1hEVEkwTURjeApNekUxTWpneE5sb3dNREVYTUJVR0ExVUVDaE1PYzNsemRHVnRPbTFoYzNSbGNuTXhGVEF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0NFQStZTGhFbWFXU2hZc2p5CjBFNW12WUl3Q2dZSUtvWkl6ajBFQXdJRFJ3QXdSQUlnUzM3M1p2SktRQkJUcHMyS1pRTkN5SkhWMmJyZXRCQWQKbHk2Z0FWMnhrbmNDSUV1RTBic0xHMlJUbmVtczZ0U29IQ3ZUcjRGUDJ3dEY5WjFUM0xUdGJRYi8KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
    client-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUhsQ1ppaXBTa2RZb0x6TVdpMFE4aERrOGdHUmpBV0FLd1N6T291QmpZbVpvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFeGRqdVRaVXBBTVhaclV4ekJ0ekRwLzlERXhwL29IUXdzVDRycEVESmpXeUlGKzVzQWdVMQpmWDZhL1ROQXEycEFWOXBHT0I0dEorUUZvaWd5QnMzMGt3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
- name: minikube
  user:
    client-certificate: /root/.minikube/profiles/minikube/client.crt
    client-key: /root/.minikube/profiles/minikube/client.key
Hi Kevin, if my kubeconfig is minikube but not k3s, is this a problem ?
I just start the UI correctly
Thanks for help
112 Views