virtual-kubelet / openstack-zun

15 stars 5 forks source link

Provider openstack not found #13

Closed lmq1999 closed 4 years ago

lmq1999 commented 4 years ago

Here is my model

Node1: kubernetes master - (installed VK) Node2: kubernetes worker1 (working normal) Node3: Openstack controller with zun (working normal) Node4: Openstack compute with zun (working normal)

When I run :

root@k8s-master:~# virtual-kubelet --provider openstack

the result:

Error: provider "openstack" not found
Usage:
  virtual-kubelet [flags]
  virtual-kubelet [command]

Available Commands:
  help        Help about any command
  providers   Show the list of supported providers
  version     Show the version of the program

Flags:
      --cluster-domain string                 kubernetes cluster-domain (default is 'cluster.local') (default "cluster.local")
      --disable-taint                         disable the virtual-kubelet node taint
      --enable-node-lease                     use node leases (1.13) for node heartbeats
      --full-resync-period duration           how often to perform a full resync of pods between kubernetes and the provider (default 1m0s)
  -h, --help                                  help for virtual-kubelet
      --klog.add_dir_header                   If true, adds the file directory to the header
      --klog.alsologtostderr                  log to standard error as well as files
      --klog.log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --klog.log_dir string                   If non-empty, write log files in this directory
      --klog.log_file string                  If non-empty, use this log file
      --klog.log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
      --klog.logtostderr                      log to standard error instead of files (default true)
      --klog.skip_headers                     If true, avoid header prefixes in the log messages
      --klog.skip_log_headers                 If true, avoid headers when opening log files
      --klog.stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --klog.v Level                          number for the log level verbosity
      --klog.vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
      --kubeconfig string                     kube config file to use for connecting to the Kubernetes API server (default "/etc/kubernetes/admin.conf")
      --log-level string                      set the log level, e.g. "debug", "info", "warn", "error" (default "info")
      --metrics-addr string                   address to listen for metrics/stats requests (default ":10255")
      --namespace string                      kubernetes namespace (default is 'all')
      --nodename string                       kubernetes node name (default "virtual-kubelet")
      --os string                             Operating System (Linux/Windows) (default "Linux")
      --pod-sync-workers int                  set the number of pod synchronization workers (default 10)
      --provider string                       cloud provider
      --provider-config string                cloud provider configuration file
      --startup-timeout duration              How long to wait for the virtual-kubelet to start
      --stream-creation-timeout duration      stream-creation-timeout is the maximum time for streaming connection, default 30s. (default 30s)
      --stream-idle-timeout duration          stream-idle-timeout is the maximum time a streaming connection can be idle before the connection is automatically closed, default 30s. (default 30s)
      --trace-exporter strings                sets the tracing exporter to use, available exporters: [jaeger ocagent]
      --trace-sample-rate string              set probability of tracing samples
      --trace-service-name string             sets the name of the service used to register with the trace exporter (default "virtual-kubelet")
      --trace-tag map                         add tags to include with traces in key=value form

Use "virtual-kubelet [command] --help" for more information about a command.

FATA[0000] provider "openstack" not found

So how can I deal with this problems, I already get a .demo-openrc file to k8s-master node

hongbin commented 4 years ago

@lmq1999 how did you install openstack-zun provider? This is how I installed it:

git clone https://github.com/virtual-kubelet/openstack-zun.git
cd openstack-zun
make build
lmq1999 commented 4 years ago

well it work

I install VK directly from here: https://virtual-kubelet.io/docs/providers/

They don't mention anything about install providers in here also