Expose on Linux node don't work "ERR_CONNECTION_TIMED_OUT"
Is this a request for help?: Yes
Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE
What version of acs-engine?: v0.13.0 also tried with v0.12.5.
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.7.9 Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"windows/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.9", GitCommit:"19fe91923d584c30bd6db5c5a21e9f0d5f742de8", GitTreeState:"clean", BuildDate:"2017-10-19T16:55:06Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
What happened: Using https://github.com/Azure/acs-engine/blob/master/examples/windows/kubernetes.json to generate and deploy. When adding a helloworld (https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/) application and exposing it on the linux master node. I get the public IP but I keep getting "ERR_CONNECTION_TIMED_OUT" when trying to browse.
What you expected to happen: Should be able to browse the newly created application in azure.
How to reproduce it (as minimally and precisely as possible):
- Populate the https://github.com/Azure/acs-engine/blob/master/examples/windows/kubernetes.json.
- Generate using acs-engine.exe.
- Deploy using acs-engine.exe to azure.
- Create an Linux application and then expose it. (https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/)
- Try to browse the newly exposed service.
Anything else we need to know: I have tried the following:
- Adding an agent pool with Linux agents and deploying/exposing on the agent nodes.
- Kubernetes versions 1.7.9, 1.9.1, 1.9.2 etc..
- Setup 7 clusters with different configurations.
- Exposing applications using the windows nodes works like a sharm.
@JiangtianLi Is there anything that @qmalexander needs to do in order to make this work using a Windows-backed cluster?
I realy need an answer to this asap. :blush: @jackfrancis
@qmalexander if you only need Linux workload, can you deploy a Linux only cluster? Also, did you specify
nodeSelector:
beta.kubernetes.io/os: windows
in workload yaml? Otherwise, Linux workload maybe deployed to windows node or vice versa.
Hi! Yes we need to run with windows nodes. Our nginx-ingress runs on the linux node. And yes the nodeSelector is correct. Like I described above, it works just fine when exposed on windows nodes but not on linux 😢 @JiangtianLi
And all pods are running green.
@qmalexander Can you post your helloworld yaml? Or if you try https://github.com/JiangtianLi/Examples/blob/master/linux/basic/nginx.yaml, do you have the same issue?
@qmalexander Also can you show the output of
kubectl get ev
and kubectl describe the helloworld pod?
Hi @JiangtianLi thank you for your quick reply. I tried with your nginx.yaml. Unfortunately I got the same result when browsing the public ip
PS D:\kubernetes> kubectl get ev -o json
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"count": 10,
"eventTime": null,
"firstTimestamp": "2018-02-22T06:49:28Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T06:52:43Z",
"message": "Node 71197k8s9000 status is now: NodeHasSufficientMemory",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "71197k8s9000.1515931548915ef4",
"namespace": "default",
"resourceVersion": "186",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.1515931548915ef4",
"uid": "03ca45f2-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasNoDiskPressure",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:53Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "03b35da0-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:53Z",
"message": "Node 71197k8s9000 event: Registered Node 71197k8s9000 in Controller",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:53Z",
"name": "71197k8s9000.151594da10a00fc3",
"namespace": "default",
"resourceVersion": "312",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594da10a00fc3",
"uid": "0e8d9667-17a1-11e8-b949-000d3a266b79"
},
"reason": "RegisteredNode",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "node-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:04Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:04Z",
"message": "Could not create route 03b35da0-17a1-11e8-b949-000d3a266b79 10.244.2.0/24 for node 71197k8s9000 after 1.191337343s: network.RoutesClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. Status=429 Code=\"RetryableError\" Message=\"A retryable error occurred.\" Details=[{\"code\":\"RetryableErrorDueToAnotherOperation\",\"message\":\"Operation PutRouteOperation (161d4ce3-6934-470a-b74c-cc5253da190e) is updating resource /subscriptions/af816357-e271-474d-8d41-2a16bca6b8a6/resourceGroups/Cluster2018RG/providers/Microsoft.Network/routeTables/k8s-master-71197529-routetable. The call can be retried in 12 seconds.\"}]",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:04Z",
"name": "71197k8s9000.151594dca2c894d2",
"namespace": "default",
"resourceVersion": "476",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594dca2c894d2",
"uid": "15221cb3-17a1-11e8-b949-000d3a266b79"
},
"reason": "FailedToCreateRoute",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "route_controller"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:33Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "03b35da0-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:33Z",
"message": "Node 71197k8s9000 status is now: NodeNotReady",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:33Z",
"name": "71197k8s9000.151594e362c2e628",
"namespace": "default",
"resourceVersion": "555",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594e362c2e628",
"uid": "2669c209-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeNotReady",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "node-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:38Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:38Z",
"message": "Starting kubelet.",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:38Z",
"name": "71197k8s9000.151594e46d8f9ccc",
"namespace": "default",
"resourceVersion": "561",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594e46d8f9ccc",
"uid": "29164523-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 5,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:38Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:42:38Z",
"message": "invalid capacity 0 on image filesystem",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:38Z",
"name": "71197k8s9000.151594e46dcc44ec",
"namespace": "default",
"resourceVersion": "2579",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594e46dcc44ec",
"uid": "29258b55-17a1-11e8-b949-000d3a266b79"
},
"reason": "InvalidDiskCapacity",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 2,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:38Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:38Z",
"message": "Node 71197k8s9000 status is now: NodeHasNoDiskPressure",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:38Z",
"name": "71197k8s9000.151594e475ac9af4",
"namespace": "default",
"resourceVersion": "566",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594e475ac9af4",
"uid": "292b345e-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientDisk",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:38Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:38Z",
"message": "Node 71197k8s9000 status is now: NodeReady",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:38Z",
"name": "71197k8s9000.151594e4778b1850",
"namespace": "default",
"resourceVersion": "567",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.151594e4778b1850",
"uid": "293721bf-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeReady",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 4,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:27:38Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9000",
"uid": "71197k8s9000"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:42:38Z",
"message": "invalid capacity 0 on image filesystem",
"metadata": {
"creationTimestamp": "2018-02-22T07:27:38Z",
"name": "71197k8s9000.1515952a47f7476c",
"namespace": "default",
"resourceVersion": "2578",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9000.1515952a47f7476c",
"uid": "dbea2ce3-17a1-11e8-b949-000d3a266b79"
},
"reason": "ImageGCFailed",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9000"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 3,
"eventTime": null,
"firstTimestamp": "2018-02-22T06:47:20Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "71197k8s9001"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T06:47:41Z",
"message": "Node 71197k8s9001 status is now: NodeHasSufficientMemory",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "71197k8s9001.151592f75d376268",
"namespace": "default",
"resourceVersion": "21",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.151592f75d376268",
"uid": "03ce57cf-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientMemory",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9001"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:53Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "03af79da-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:53Z",
"message": "Node 71197k8s9001 event: Registered Node 71197k8s9001 in Controller",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:53Z",
"name": "71197k8s9001.151594da10a3515c",
"namespace": "default",
"resourceVersion": "314",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.151594da10a3515c",
"uid": "0e91a630-17a1-11e8-b949-000d3a266b79"
},
"reason": "RegisteredNode",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "node-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:22Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "71197k8s9001"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:22Z",
"message": "Starting kubelet.",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:22Z",
"name": "71197k8s9001.151594e0bddc70c8",
"namespace": "default",
"resourceVersion": "517",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.151594e0bddc70c8",
"uid": "1fa6f7a3-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9001"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 5,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:22Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "71197k8s9001"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:42:22Z",
"message": "invalid capacity 0 on image filesystem",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:22Z",
"name": "71197k8s9001.151594e0bdeb43b4",
"namespace": "default",
"resourceVersion": "2556",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.151594e0bdeb43b4",
"uid": "1fa8c68a-17a1-11e8-b949-000d3a266b79"
},
"reason": "InvalidDiskCapacity",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9001"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:22Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "71197k8s9001"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:22Z",
"message": "Node 71197k8s9001 status is now: NodeHasSufficientDisk",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:22Z",
"name": "71197k8s9001.151594e0c5f7fb10",
"namespace": "default",
"resourceVersion": "519",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.151594e0c5f7fb10",
"uid": "1fbbddba-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientDisk",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9001"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 4,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:27:22Z",
"involvedObject": {
"kind": "Node",
"name": "71197k8s9001",
"uid": "71197k8s9001"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:42:22Z",
"message": "invalid capacity 0 on image filesystem",
"metadata": {
"creationTimestamp": "2018-02-22T07:27:22Z",
"name": "71197k8s9001.15159526982fe65c",
"namespace": "default",
"resourceVersion": "2555",
"selfLink": "/api/v1/namespaces/default/events/71197k8s9001.15159526982fe65c",
"uid": "d278d164-17a1-11e8-b949-000d3a266b79"
},
"reason": "ImageGCFailed",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "71197k8s9001"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:43Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:25:43Z",
"message": "Starting kubelet.",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:43Z",
"name": "k8s-linuxpool1-71197529-0.1515950fad5b7b31",
"namespace": "default",
"resourceVersion": "873",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.1515950fad5b7b31",
"uid": "97cf2302-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 2,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:43Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:25:44Z",
"message": "Node k8s-linuxpool1-71197529-0 status is now: NodeHasSufficientDisk",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:43Z",
"name": "k8s-linuxpool1-71197529-0.1515950fb06048e1",
"namespace": "default",
"resourceVersion": "881",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.1515950fb06048e1",
"uid": "97d6cc93-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientDisk",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 2,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:43Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:25:44Z",
"message": "Node k8s-linuxpool1-71197529-0 status is now: NodeHasSufficientMemory",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:43Z",
"name": "k8s-linuxpool1-71197529-0.1515950fb060c470",
"namespace": "default",
"resourceVersion": "883",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.1515950fb060c470",
"uid": "97d7f27a-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientMemory",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 2,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:43Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:25:44Z",
"message": "Node k8s-linuxpool1-71197529-0 status is now: NodeHasNoDiskPressure",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:43Z",
"name": "k8s-linuxpool1-71197529-0.1515950fb060ecb6",
"namespace": "default",
"resourceVersion": "886",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.1515950fb060ecb6",
"uid": "97d903e0-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasNoDiskPressure",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 20,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:43Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:44:43Z",
"message": "Failed to update Node Allocatable Limits \"\": failed to set supported cgroup subsystems for cgroup : Failed to set config for supported subsystems : failed to write 7285039104 to memory.limit_in_bytes: write /var/lib/docker/overlay2/527c76723f48b612ab74e4238977ae9fbc8a852070f5400f91369bbfb350eca3/merged/sys/fs/cgroup/memory/memory.limit_in_bytes: invalid argument",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:43Z",
"name": "k8s-linuxpool1-71197529-0.1515950fb0774b63",
"namespace": "default",
"resourceVersion": "2761",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.1515950fb0774b63",
"uid": "97dc8ff2-17a1-11e8-b949-000d3a266b79"
},
"reason": "FailedNodeAllocatableEnforcement",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:25:48Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "97ea2df6-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:25:48Z",
"message": "Node k8s-linuxpool1-71197529-0 event: Registered Node k8s-linuxpool1-71197529-0 in Controller",
"metadata": {
"creationTimestamp": "2018-02-22T07:25:48Z",
"name": "k8s-linuxpool1-71197529-0.15159510cc342cd9",
"namespace": "default",
"resourceVersion": "894",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.15159510cc342cd9",
"uid": "9aaaf945-17a1-11e8-b949-000d3a266b79"
},
"reason": "RegisteredNode",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "node-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:26:04Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:26:04Z",
"message": "Node k8s-linuxpool1-71197529-0 status is now: NodeReady",
"metadata": {
"creationTimestamp": "2018-02-22T07:26:04Z",
"name": "k8s-linuxpool1-71197529-0.151595146390362b",
"namespace": "default",
"resourceVersion": "944",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.151595146390362b",
"uid": "a3dda9c3-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeReady",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:26:06Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-linuxpool1-71197529-0",
"uid": "k8s-linuxpool1-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:26:06Z",
"message": "Starting kube-proxy.",
"metadata": {
"creationTimestamp": "2018-02-22T07:26:06Z",
"name": "k8s-linuxpool1-71197529-0.15159514ebe771f7",
"namespace": "default",
"resourceVersion": "973",
"selfLink": "/api/v1/namespaces/default/events/k8s-linuxpool1-71197529-0.15159514ebe771f7",
"uid": "a53aa636-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kube-proxy",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:01Z",
"message": "Starting kubelet.",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "k8s-master-71197529-0.151594cdfbff0333",
"namespace": "default",
"resourceVersion": "19",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594cdfbff0333",
"uid": "03ccf3e5-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-master-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 8,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:14Z",
"message": "Node k8s-master-71197529-0 status is now: NodeHasSufficientDisk",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "k8s-master-71197529-0.151594ce0040929d",
"namespace": "default",
"resourceVersion": "182",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594ce0040929d",
"uid": "03ceb45b-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientDisk",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-master-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 8,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:14Z",
"message": "Node k8s-master-71197529-0 status is now: NodeHasSufficientMemory",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "k8s-master-71197529-0.151594ce0040b561",
"namespace": "default",
"resourceVersion": "185",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594ce0040b561",
"uid": "03d3c328-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasSufficientMemory",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-master-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 7,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:08Z",
"message": "Node k8s-master-71197529-0 status is now: NodeHasNoDiskPressure",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "k8s-master-71197529-0.151594ce0040ce61",
"namespace": "default",
"resourceVersion": "181",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594ce0040ce61",
"uid": "03d8ef12-17a1-11e8-b949-000d3a266b79"
},
"reason": "NodeHasNoDiskPressure",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-master-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 21,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:41:01Z",
"message": "Failed to update Node Allocatable Limits \"\": failed to set supported cgroup subsystems for cgroup : Failed to set config for supported subsystems : failed to write 7293988864 to memory.limit_in_bytes: write /var/lib/docker/overlay2/abca05ec92ff093449b7de92a633cc5a675492e5dd7e9baa590e4b50d4a72ef1/merged/sys/fs/cgroup/memory/memory.limit_in_bytes: invalid argument",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:35Z",
"name": "k8s-master-71197529-0.151594ce004e285d",
"namespace": "default",
"resourceVersion": "2432",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594ce004e285d",
"uid": "03e1f873-17a1-11e8-b949-000d3a266b79"
},
"reason": "FailedNodeAllocatableEnforcement",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-master-71197529-0"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:53Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "03a81c81-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:21:53Z",
"message": "Node k8s-master-71197529-0 event: Registered Node k8s-master-71197529-0 in Controller",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:53Z",
"name": "k8s-master-71197529-0.151594da10a2b968",
"namespace": "default",
"resourceVersion": "313",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594da10a2b968",
"uid": "0e8f48f4-17a1-11e8-b949-000d3a266b79"
},
"reason": "RegisteredNode",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "node-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:22:01Z",
"involvedObject": {
"kind": "Node",
"name": "k8s-master-71197529-0",
"uid": "k8s-master-71197529-0"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:22:01Z",
"message": "Starting kube-proxy.",
"metadata": {
"creationTimestamp": "2018-02-22T07:22:01Z",
"name": "k8s-master-71197529-0.151594dbe184dea1",
"namespace": "default",
"resourceVersion": "464",
"selfLink": "/api/v1/namespaces/default/events/k8s-master-71197529-0.151594dbe184dea1",
"uid": "1333a771-17a1-11e8-b949-000d3a266b79"
},
"reason": "Starting",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kube-proxy",
"host": "k8s-master-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 10,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:21:53Z",
"involvedObject": {
"apiVersion": "v1",
"kind": "Service",
"name": "kubernetes",
"namespace": "default",
"resourceVersion": "18",
"uid": "03cc821e-17a1-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:42:09Z",
"message": "Error creating load balancer (will retry): error getting LB for service default/kubernetes: Service(default/kubernetes) - Loadbalancer not found",
"metadata": {
"creationTimestamp": "2018-02-22T07:21:53Z",
"name": "kubernetes.151594da0b31c3f0",
"namespace": "default",
"resourceVersion": "2530",
"selfLink": "/api/v1/namespaces/default/events/kubernetes.151594da0b31c3f0",
"uid": "0e81420a-17a1-11e8-b949-000d3a266b79"
},
"reason": "CreatingLoadBalancerFailed",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "service-controller"
},
"type": "Warning"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:50Z",
"involvedObject": {
"apiVersion": "v1",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2135",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:50Z",
"message": "Successfully assigned my-nginx-97bb86f9d-wgscx to k8s-linuxpool1-71197529-0",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:50Z",
"name": "my-nginx-97bb86f9d-wgscx.151595b8ec3b1cc3",
"namespace": "default",
"resourceVersion": "2141",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595b8ec3b1cc3",
"uid": "4911a479-17a3-11e8-b949-000d3a266b79"
},
"reason": "Scheduled",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "default-scheduler"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:51Z",
"involvedObject": {
"apiVersion": "v1",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2136",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:51Z",
"message": "MountVolume.SetUp succeeded for volume \"default-token-vd5dv\" ",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:51Z",
"name": "my-nginx-97bb86f9d-wgscx.151595b8fe4c8cb2",
"namespace": "default",
"resourceVersion": "2144",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595b8fe4c8cb2",
"uid": "493fef60-17a3-11e8-b949-000d3a266b79"
},
"reason": "SuccessfulMountVolume",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:54Z",
"involvedObject": {
"apiVersion": "v1",
"fieldPath": "spec.containers{nginx}",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2136",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:54Z",
"message": "pulling image \"nginx:1.7.9\"",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:54Z",
"name": "my-nginx-97bb86f9d-wgscx.151595b9b2cc464f",
"namespace": "default",
"resourceVersion": "2149",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595b9b2cc464f",
"uid": "4b0e133b-17a3-11e8-b949-000d3a266b79"
},
"reason": "Pulling",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:38:02Z",
"involvedObject": {
"apiVersion": "v1",
"fieldPath": "spec.containers{nginx}",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2136",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:38:02Z",
"message": "Successfully pulled image \"nginx:1.7.9\"",
"metadata": {
"creationTimestamp": "2018-02-22T07:38:02Z",
"name": "my-nginx-97bb86f9d-wgscx.151595bb8c4e847c",
"namespace": "default",
"resourceVersion": "2164",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595bb8c4e847c",
"uid": "4fca3121-17a3-11e8-b949-000d3a266b79"
},
"reason": "Pulled",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:38:02Z",
"involvedObject": {
"apiVersion": "v1",
"fieldPath": "spec.containers{nginx}",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2136",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:38:02Z",
"message": "Created container",
"metadata": {
"creationTimestamp": "2018-02-22T07:38:02Z",
"name": "my-nginx-97bb86f9d-wgscx.151595bba58364d9",
"namespace": "default",
"resourceVersion": "2165",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595bba58364d9",
"uid": "500abcb4-17a3-11e8-b949-000d3a266b79"
},
"reason": "Created",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:38:02Z",
"involvedObject": {
"apiVersion": "v1",
"fieldPath": "spec.containers{nginx}",
"kind": "Pod",
"name": "my-nginx-97bb86f9d-wgscx",
"namespace": "default",
"resourceVersion": "2136",
"uid": "490ebd5b-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:38:02Z",
"message": "Started container",
"metadata": {
"creationTimestamp": "2018-02-22T07:38:02Z",
"name": "my-nginx-97bb86f9d-wgscx.151595bbaecfacd1",
"namespace": "default",
"resourceVersion": "2166",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d-wgscx.151595bbaecfacd1",
"uid": "50228262-17a3-11e8-b949-000d3a266b79"
},
"reason": "Started",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "kubelet",
"host": "k8s-linuxpool1-71197529-0"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:50Z",
"involvedObject": {
"apiVersion": "extensions",
"kind": "ReplicaSet",
"name": "my-nginx-97bb86f9d",
"namespace": "default",
"resourceVersion": "2132",
"uid": "490c9837-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:50Z",
"message": "Created pod: my-nginx-97bb86f9d-wgscx",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:50Z",
"name": "my-nginx-97bb86f9d.151595b8eb9c4cb9",
"namespace": "default",
"resourceVersion": "2139",
"selfLink": "/api/v1/namespaces/default/events/my-nginx-97bb86f9d.151595b8eb9c4cb9",
"uid": "49102a00-17a3-11e8-b949-000d3a266b79"
},
"reason": "SuccessfulCreate",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "replicaset-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:50Z",
"involvedObject": {
"apiVersion": "v1",
"kind": "Service",
"name": "my-nginx",
"namespace": "default",
"resourceVersion": "2128",
"uid": "490370da-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:50Z",
"message": "Ensuring load balancer",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:50Z",
"name": "my-nginx.151595b8e7399c6c",
"namespace": "default",
"resourceVersion": "2130",
"selfLink": "/api/v1/namespaces/default/events/my-nginx.151595b8e7399c6c",
"uid": "49086f5b-17a3-11e8-b949-000d3a266b79"
},
"reason": "EnsuringLoadBalancer",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "service-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:37:50Z",
"involvedObject": {
"apiVersion": "extensions",
"kind": "Deployment",
"name": "my-nginx",
"namespace": "default",
"resourceVersion": "2131",
"uid": "490b2172-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:37:50Z",
"message": "Scaled up replica set my-nginx-97bb86f9d to 1",
"metadata": {
"creationTimestamp": "2018-02-22T07:37:50Z",
"name": "my-nginx.151595b8ea957105",
"namespace": "default",
"resourceVersion": "2134",
"selfLink": "/api/v1/namespaces/default/events/my-nginx.151595b8ea957105",
"uid": "490d54fd-17a3-11e8-b949-000d3a266b79"
},
"reason": "ScalingReplicaSet",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "deployment-controller"
},
"type": "Normal"
},
{
"apiVersion": "v1",
"count": 1,
"eventTime": null,
"firstTimestamp": "2018-02-22T07:40:26Z",
"involvedObject": {
"apiVersion": "v1",
"kind": "Service",
"name": "my-nginx",
"namespace": "default",
"resourceVersion": "2128",
"uid": "490370da-17a3-11e8-b949-000d3a266b79"
},
"kind": "Event",
"lastTimestamp": "2018-02-22T07:40:26Z",
"message": "Ensured load balancer",
"metadata": {
"creationTimestamp": "2018-02-22T07:40:26Z",
"name": "my-nginx.151595dd2a59f119",
"namespace": "default",
"resourceVersion": "2379",
"selfLink": "/api/v1/namespaces/default/events/my-nginx.151595dd2a59f119",
"uid": "a5d9ccc5-17a3-11e8-b949-000d3a266b79"
},
"reason": "EnsuredLoadBalancer",
"reportingComponent": "",
"reportingInstance": "",
"source": {
"component": "service-controller"
},
"type": "Normal"
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}
`PS D:\kubernetes> kubectl describe pod my-nginx-97bb86f9d-wgscx
Name: my-nginx-97bb86f9d-wgscx
Namespace: default
Node: k8s-linuxpool1-71197529-0/10.240.0.4
Start Time: Thu, 22 Feb 2018 08:37:50 +0100
Labels: app=my-nginx
pod-template-hash=536642958
Annotations:
Normal Scheduled 9m default-scheduler Successfully assigned my-nginx-97bb86f9d-wgscx to k8s-linuxpool1-71197529-0 Normal SuccessfulMountVolume 9m kubelet, k8s-linuxpool1-71197529-0 MountVolume.SetUp succeeded for volume "default-token-vd5dv" Normal Pulling 9m kubelet, k8s-linuxpool1-71197529-0 pulling image "nginx:1.7.9" Normal Pulled 8m kubelet, k8s-linuxpool1-71197529-0 Successfully pulled image "nginx:1.7.9" Normal Created 8m kubelet, k8s-linuxpool1-71197529-0 Created container Normal Started 8m kubelet, k8s-linuxpool1-71197529-0 Started container`
@qmalexander Can you check what networkpolicy it is in your apimodel (azure.json and azure.parameters.json)? Can you curl the public IP/external IP from master node? Can nginx be reached by POD IP or cluster IP?
Does your cluster has Linux agent node? Can you show the output of kubectl get no -o wide?
The error "Could not create route 03b35da0-17a1-11e8-b949-000d3a266b79 10.244.2.0/24 for node 71197k8s9000 after 1.191337343s: network.RoutesClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. " looks to me you have an invalid Service Principal. Could you try another one and make sure it is valid?
@JiangtianLi
NetworkPolicy
"networkPolicy": { "value": "none" }
Curl from master:
my-nginx service external ip: It works. my-nginx service Cluster IP:10.0.165.182: It works. my-nginx pod: It works.
Yes the cluster have a linux node.
kubectl get no -o wide
NAME STATUS ROLES AGE VERSION EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
71197k8s9000 Ready <none> 24m v1.9.1 <none> Windows Server Datacenter 6.2.09200.192
docker://17.6.2
71197k8s9001 Ready <none> 24m v1.9.1 <none> Windows Server Datacenter 6.2.09200.192
docker://17.6.2
k8s-linuxpool1-71197529-0 Ready agent 20m v1.9.1 <none> Debian GNU/Linux 9 (stretch) 4.13.0-1011-azure docker://1.12.6
k8s-master-71197529-0 Ready master 27m v1.9.1 <none> Debian GNU/Linux 9 (stretch) 4.11.0-1016-azure docker://1.12.6
Service Principal created with this example: (https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-service-principal). For every deploy of a cluster I have created a new one.
@JiangtianLi Hi again, Hope you had a good weekend!
I made some more experiments. I tried creating one more cluster under another subscription and with service principal credentials that I know works. Got the exakt same result. Running kubectl get ev I still see CreatingLoadBalancerFailed.
Are you able to reproduce the problem? @jackfrancis @JiangtianLi
@qmalexander can you run
az ad sp show --id <id>
az role assignment show --all --assignee <id>
to see if your SP has role assignment?
@JiangtianLi of course here you go:


@qmalexander Just wonder, with the same SP, were you able to create a Linux only cluster of the same version and didn't see those issues? CreatingLoadBalancerFailed looks to me like either permission or quota issue with Azure. Just want to narrow down if it is due to windows cluster.
@JiangtianLi seams that you are right. I get the same issue when creating a cluster with only master and one linux agent. The thing is that I use my msdn enterprise subscription. Do you have any suggestions what I should do?
@qmalexander Try delete some clusters not used under that sub? From azure portal, do you see any deployment failure/logs in the cluster? That might help to find the root cause.
@JiangtianLi Right now I have only my one test cluster running.

... the strange thing is that there are two loadbalancers created. Why do only one fail to create???

@JiangtianLi so. I found the issue. The problem is that when exposing in kubernetes the azure loadbalancer uses the wrong Availability set (In my case it is using the availability set of my windows nodes). If I add the Linux availability set (where my nginx pod is running) and change the Load balancing rules to point to it.
Now I'm able to browse my nginx application 👍
So I guess it is a k8s config problem?
@qmalexander Normally there is only one loadbalancer created in acs-engine cluster, prefixed with k8s-master-lb. Is there any other step or config you add to the cluster? Is there any other workload you have run before the nginx workload?
Okay @JiangtianLi just to summarize. Because azure load-balancer have a limit of only one AvailabilitySet for the Back-end pool, the order of agentPoolProfiles get very important.
So, in my case I had the windowspool as the first pool in my agentPoolProfiles. When exposing my pod running on the Linux node, the loadbalancer created by k8s (in azure) choose the AvailabilitySet of the windowspool. Changing the order of the agentPoolProfiles solves the problem.
So, Now to the question. Is the problem with k8s or is it that k8s don’t have enough information about the availabilitySets? @jackfrancis @JiangtianLi
Side note: In the azure.json file on the k8s-master node you are able to see that primaryAvailabilitySetName is set to the firstAgentPool-availabilitySet.
Source: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-overview#sku-service-limits-and-abilities
@qmalexander It looks like acs-engine set primaryAvailabilitySetName in https://github.com/Azure/acs-engine/blob/master/parts/k8s/kubernetesmastervars.t#L270. We'll look into if it causes problem with the order of agentpools.