Kubernetes和openstack LBaaS:没有日志,只有简单的错误

时间:2017-08-02 06:57:42

标签: kubernetes load-balancing openstack

我在Openstack上测试kubernetes。在pod之间创建和通信是可以的,但不幸的是,当我尝试使用Openstack Loadbalancer创建服务时,只返回一条小消息:

kubectl describe svc example-service --show-events=true
Name:           example-service
Namespace:      default
Labels:         pod-template-hash=3272482377
            run=load-balancer-example
Annotations:        <none>
Selector:       pod-template-hash=3272482377,run=load-balancer-example
Type:           LoadBalancer
IP:         10.233.6.94
Port:           <unset> 8765/TCP
NodePort:       <unset> 31046/TCP
Endpoints:      <none>
Session Affinity:   None
Events:
  FirstSeen LastSeen    Count   From            SubObjectPath   Type        Reason              Message
  --------- --------    -----   ----            -------------   --------    ------              -------
  1m        35s     4   service-controller          Normal      CreatingLoadBalancer        Creating load balancer
  1m        35s     4   service-controller          Warning     CreatingLoadBalancerFailed  Error creating load balancer (will retry): Failed to create load balancer for service default/example-service: Invalid request due to incorrect syntax or missing required parameters.

正如您所看到的,kubernetes返回&#34;由于语法错误而导致请求无效&#34;。这个消息是什么意思?错误的云配置文件?

请在下面找到我的cloud-config文件:

[Global]
auth-url=https://XXXXXX/v2
username=XXXXXX
password=XXXXXX
tenant-name=XXXXXXXX

[LoadBalancer]
subnet-id=1be0ae06-38df-4063-a957-02087f855ce1
floating-network-id=1c93fab5-50c2-403a-96e0-e42822f393c4

如果我查看了journald消息,openstack后端已经返回了一些openstack变量:

Aug 02 06:45:58 kubemaster.novalocal kubelet[4059]: I0802 06:45:58.705237    4086 openstack_instances.go:42] openstack.Instances() called
Aug 02 06:45:58 kubemaster.novalocal kubelet[4059]: I0802 06:45:58.788955    4086 openstack_instances.go:79] Found 16 compute flavors
Aug 02 06:45:58 kubemaster.novalocal kubelet[4059]: I0802 06:45:58.789062    4086 openstack_instances.go:80] Claiming to support Instances
Aug 02 06:45:58 kubemaster.novalocal kubelet[4059]: I0802 06:45:58.789129    4086 openstack_instances.go:130] NodeAddresses(kubemaster) called
Aug 02 06:45:59 kubemaster.novalocal kubelet[4059]: I0802 06:45:59.169247    4086 openstack_instances.go:137] NodeAddresses(kubemaster) => [{InternalIP 192.168.0.40}]

但没有关于负载均衡器的消息......

找到问题的任何线索?

0 个答案:

没有答案