aks-engine icon indicating copy to clipboard operation
aks-engine copied to clipboard

kube-apiserver failures on all nodes

Open PacoGuy opened this issue 7 years ago • 3 comments

Is this a request for help?: Yes

Is this an ISSUE or FEATURE REQUEST? (choose one): Issue

What version of aks-engine?: v0.32.3

Kubernetes version: v1.13.4 & v1.10.8

What happened: Deployments with aks-engine v0.32.3 all have kube-apiserver failing with Status:"CrashLoopBackOff". This is happening in both k8s versions specified with the pertinent log message for those pods unable to load server certificate: tls: private key does not match public key

kube-apiserver-k8s-agentpool1-48312974-vmss000001            0/1       CrashLoopBackOff   577        2d
kube-apiserver-k8s-agentpool1-48312974-vmss000002            0/1       CrashLoopBackOff   578        2d

What you expected to happen: The correct key templated and used from the generated templates by aks-engine generate. No failing kube-apiserver pods.

How to reproduce it (as minimally and precisely as possible): k8s.json:

  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes",
      "orchestratorVersion": "1.10.13",
      "kubernetesConfig": {
        "networkPolicy": "azure",
        "maxPods": 20,
        "apiServerConfig": {
          "--enable-admission-plugins":"NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota",
          "--requestheader-allowed-names":"aggregator",
          "--authorization-mode": "Node,RBAC"
        },
        "controllerManagerConfig": {
          "--horizontal-pod-autoscaler-use-rest-clients":"true",
          "--horizontal-pod-autoscaler-sync-period":"1s"
        },
        "useInstanceMetadata": true,
        "privateCluster": {
          "enabled": true
      	},
        "addons": [
          {
            "name": "cluster-autoscaler",
            "enabled": true,
            "config": {
              "min-nodes": "3",
              "max-nodes": "5",
              "scan-interval": "60s"
            }
          }
        ]
       }
    },
    "masterProfile": {
      "count": 1,
      "dnsPrefix": "****",
      "vmSize": "Standard_D4_v3",
      "vnetSubnetId": "/subscriptions/****/resourceGroups/****/providers/Microsoft.Network/virtualNetworks/****/subnets/****",
      "firstConsecutiveStaticIP": "****.250",
      "OSDiskSizeGB": 128,
      "vnetCidr": "****.0/22"
    },
    "agentPoolProfiles": [
      {
        "name": "agentpool1",
        "count": 3,
        "imageReference": {
          "name": "k8sNodeImage190312",
          "resourceGroup": "****"
        },
        "vmSize": "Standard_D8s_v3",
        "vnetSubnetId": "/subscriptions/****/resourceGroups/****/providers/Microsoft.Network/virtualNetworks/****/subnets/****",
        "storageProfile" : "ManagedDisks",
        "availabilityProfile": "VirtualMachineScaleSets",
        "customNodeLabels": {
          "role_worker": "all"
        },
        "OSDiskSizeGB": 600
      }
    ],
    "linuxProfile": {
      "adminUsername": "azuser",
      "ssh": {
        "publicKeys": [
          {
            "keyData": "****"
          }
        ]
      }
    },
    "servicePrincipalProfile": {
      "clientId": "****",
      "secret": "****"
    }
  }
}

The deployment is run with the following command after a standard aks-engine generate k8s.json:

az group deployment create --name ${cluster_name} --resource-group ${resource_group_name} --template-file ./$(find _output -name 'azuredeploy.json') --parameters @./$(find _output -name 'azuredeploy.parameters.json')

Anything else we need to know: Could this somehow be caused by using a custom node image?

Here is the describe on one of the failing pods:

Name:               kube-apiserver-k8s-agentpool1-48312974-vmss000000
Namespace:          kube-system
Priority:           0
PriorityClassName:  <none>
Node:               k8s-agentpool1-48312974-vmss000000/10.246.25.153
Start Time:         Mon, 18 Mar 2019 15:50:03 -0500
Labels:             component=kube-apiserver
                    tier=control-plane
Annotations:        kubernetes.io/config.hash=0b0e4082d73f3062c9beaece3ed7f3a3
                    kubernetes.io/config.mirror=0b0e4082d73f3062c9beaece3ed7f3a3
                    kubernetes.io/config.seen=2019-03-18T20:50:02.535657182Z
                    kubernetes.io/config.source=file
Status:             Running
IP:                 10.246.25.153
Containers:
  kube-apiserver:
    Container ID:  docker://a62daf2144e4011a3a34f7570002f90c3ba90e41490071a526bbfc0291e31bd0
    Image:         k8s.gcr.io/hyperkube-amd64:v1.13.4
    Image ID:      docker-pullable://k8s.gcr.io/hyperkube-amd64@sha256:4cb4542d31873085c8cfdb6eaee1ebef6b359922a28b76c6c3a9746335fcb2f4
    Port:          <none>
    Host Port:     <none>
    Command:
      /hyperkube
      apiserver
    Args:
      --advertise-address=10.246.23.251
      --allow-privileged=true
      --anonymous-auth=false
      --audit-log-maxage=30
      --audit-log-maxbackup=10
      --audit-log-maxsize=100
      --audit-log-path=/var/log/kubeaudit/audit.log
      --audit-policy-file=/etc/kubernetes/addons/audit-policy.yaml
      --authorization-mode=Node,RBAC
      --bind-address=0.0.0.0
      --client-ca-file=/etc/kubernetes/certs/ca.crt
      --cloud-config=/etc/kubernetes/azure.json
      --cloud-provider=azure
      --enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota
      --enable-bootstrap-token-auth=true
      --etcd-cafile=/etc/kubernetes/certs/ca.crt
      --etcd-certfile=/etc/kubernetes/certs/etcdclient.crt
      --etcd-keyfile=/etc/kubernetes/certs/etcdclient.key
      --etcd-servers=https://127.0.0.1:2379
      --insecure-port=8080
      --kubelet-client-certificate=/etc/kubernetes/certs/client.crt
      --kubelet-client-key=/etc/kubernetes/certs/client.key
      --profiling=false
      --proxy-client-cert-file=/etc/kubernetes/certs/proxy.crt
      --proxy-client-key-file=/etc/kubernetes/certs/proxy.key
      --repair-malformed-updates=false
      --requestheader-allowed-names=aggregator
      --requestheader-client-ca-file=/etc/kubernetes/certs/proxy-ca.crt
      --requestheader-extra-headers-prefix=X-Remote-Extra-
      --requestheader-group-headers=X-Remote-Group
      --requestheader-username-headers=X-Remote-User
      --secure-port=443
      --service-account-key-file=/etc/kubernetes/certs/apiserver.key
      --service-account-lookup=true
      --service-cluster-ip-range=10.0.0.0/16
      --storage-backend=etcd3
      --tls-cert-file=/etc/kubernetes/certs/apiserver.crt
      --tls-private-key-file=/etc/kubernetes/certs/apiserver.key
      --v=4
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Wed, 20 Mar 2019 16:35:59 -0500
      Finished:     Wed, 20 Mar 2019 16:35:59 -0500
    Ready:          False
    Restart Count:  579
    Environment:    <none>
    Mounts:
      /etc/kubernetes from etc-kubernetes (rw)
      /opt from sock (rw)
      /var/lib/kubelet from var-lib-kubelet (rw)
      /var/lib/waagent/ManagedIdentity-Settings from msi (ro)
      /var/log/kubeaudit from auditlog (rw)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  etc-kubernetes:
    Type:          HostPath (bare host directory volume)
    Path:          /etc/kubernetes
    HostPathType:  
  var-lib-kubelet:
    Type:          HostPath (bare host directory volume)
    Path:          /var/lib/kubelet
    HostPathType:  
  msi:
    Type:          HostPath (bare host directory volume)
    Path:          /var/lib/waagent/ManagedIdentity-Settings
    HostPathType:  
  sock:
    Type:          HostPath (bare host directory volume)
    Path:          /opt
    HostPathType:  
  auditlog:
    Type:          HostPath (bare host directory volume)
    Path:          /var/log/kubeaudit
    HostPathType:  
QoS Class:         BestEffort
Node-Selectors:    <none>
Tolerations:       :NoExecute
Events:            <none>

Here is the log for one of the failing pods:

Flag --insecure-port has been deprecated, This flag will be removed in a future version.
Flag --repair-malformed-updates has been deprecated, This flag will be removed in a future version
I0320 21:30:55.216597       1 flags.go:33] FLAG: --address="127.0.0.1"
I0320 21:30:55.216639       1 flags.go:33] FLAG: --admission-control="[]"
I0320 21:30:55.216650       1 flags.go:33] FLAG: --admission-control-config-file=""
I0320 21:30:55.216657       1 flags.go:33] FLAG: --advertise-address="10.246.23.251"
I0320 21:30:55.216664       1 flags.go:33] FLAG: --allow-privileged="true"
I0320 21:30:55.216684       1 flags.go:33] FLAG: --alsologtostderr="false"
I0320 21:30:55.216690       1 flags.go:33] FLAG: --anonymous-auth="false"
I0320 21:30:55.216693       1 flags.go:33] FLAG: --api-audiences="[]"
I0320 21:30:55.216700       1 flags.go:33] FLAG: --apiserver-count="1"
I0320 21:30:55.216704       1 flags.go:33] FLAG: --application-metrics-count-limit="100"
I0320 21:30:55.216708       1 flags.go:33] FLAG: --audit-dynamic-configuration="false"
I0320 21:30:55.216712       1 flags.go:33] FLAG: --audit-log-batch-buffer-size="10000"
I0320 21:30:55.216715       1 flags.go:33] FLAG: --audit-log-batch-max-size="1"
I0320 21:30:55.216718       1 flags.go:33] FLAG: --audit-log-batch-max-wait="0s"
I0320 21:30:55.216723       1 flags.go:33] FLAG: --audit-log-batch-throttle-burst="0"
I0320 21:30:55.216726       1 flags.go:33] FLAG: --audit-log-batch-throttle-enable="false"
I0320 21:30:55.216729       1 flags.go:33] FLAG: --audit-log-batch-throttle-qps="0"
I0320 21:30:55.216741       1 flags.go:33] FLAG: --audit-log-format="json"
I0320 21:30:55.216747       1 flags.go:33] FLAG: --audit-log-maxage="30"
I0320 21:30:55.216753       1 flags.go:33] FLAG: --audit-log-maxbackup="10"
I0320 21:30:55.216759       1 flags.go:33] FLAG: --audit-log-maxsize="100"
I0320 21:30:55.216763       1 flags.go:33] FLAG: --audit-log-mode="blocking"
I0320 21:30:55.216767       1 flags.go:33] FLAG: --audit-log-path="/var/log/kubeaudit/audit.log"
I0320 21:30:55.216770       1 flags.go:33] FLAG: --audit-log-truncate-enabled="false"
I0320 21:30:55.216774       1 flags.go:33] FLAG: --audit-log-truncate-max-batch-size="10485760"
I0320 21:30:55.216778       1 flags.go:33] FLAG: --audit-log-truncate-max-event-size="102400"
I0320 21:30:55.216809       1 flags.go:33] FLAG: --audit-log-version="audit.k8s.io/v1"
I0320 21:30:55.216812       1 flags.go:33] FLAG: --audit-policy-file="/etc/kubernetes/addons/audit-policy.yaml"
I0320 21:30:55.216816       1 flags.go:33] FLAG: --audit-webhook-batch-buffer-size="10000"
I0320 21:30:55.216835       1 flags.go:33] FLAG: --audit-webhook-batch-initial-backoff="10s"
I0320 21:30:55.216839       1 flags.go:33] FLAG: --audit-webhook-batch-max-size="400"
I0320 21:30:55.216842       1 flags.go:33] FLAG: --audit-webhook-batch-max-wait="30s"
I0320 21:30:55.216845       1 flags.go:33] FLAG: --audit-webhook-batch-throttle-burst="15"
I0320 21:30:55.216848       1 flags.go:33] FLAG: --audit-webhook-batch-throttle-enable="true"
I0320 21:30:55.216851       1 flags.go:33] FLAG: --audit-webhook-batch-throttle-qps="10"
I0320 21:30:55.216855       1 flags.go:33] FLAG: --audit-webhook-config-file=""
I0320 21:30:55.216857       1 flags.go:33] FLAG: --audit-webhook-initial-backoff="10s"
I0320 21:30:55.216860       1 flags.go:33] FLAG: --audit-webhook-mode="batch"
I0320 21:30:55.216863       1 flags.go:33] FLAG: --audit-webhook-truncate-enabled="false"
I0320 21:30:55.216866       1 flags.go:33] FLAG: --audit-webhook-truncate-max-batch-size="10485760"
I0320 21:30:55.216870       1 flags.go:33] FLAG: --audit-webhook-truncate-max-event-size="102400"
I0320 21:30:55.216873       1 flags.go:33] FLAG: --audit-webhook-version="audit.k8s.io/v1"
I0320 21:30:55.216877       1 flags.go:33] FLAG: --authentication-token-webhook-cache-ttl="2m0s"
I0320 21:30:55.216883       1 flags.go:33] FLAG: --authentication-token-webhook-config-file=""
I0320 21:30:55.216888       1 flags.go:33] FLAG: --authorization-mode="[Node,RBAC]"
I0320 21:30:55.216903       1 flags.go:33] FLAG: --authorization-policy-file=""
I0320 21:30:55.216907       1 flags.go:33] FLAG: --authorization-webhook-cache-authorized-ttl="5m0s"
I0320 21:30:55.216910       1 flags.go:33] FLAG: --authorization-webhook-cache-unauthorized-ttl="30s"
I0320 21:30:55.216913       1 flags.go:33] FLAG: --authorization-webhook-config-file=""
I0320 21:30:55.216916       1 flags.go:33] FLAG: --azure-container-registry-config=""
I0320 21:30:55.216919       1 flags.go:33] FLAG: --basic-auth-file=""
I0320 21:30:55.216922       1 flags.go:33] FLAG: --bind-address="0.0.0.0"
I0320 21:30:55.216925       1 flags.go:33] FLAG: --boot-id-file="/proc/sys/kernel/random/boot_id"
I0320 21:30:55.216930       1 flags.go:33] FLAG: --cert-dir="/var/run/kubernetes"
I0320 21:30:55.216933       1 flags.go:33] FLAG: --client-ca-file="/etc/kubernetes/certs/ca.crt"
I0320 21:30:55.216937       1 flags.go:33] FLAG: --cloud-config="/etc/kubernetes/azure.json"
I0320 21:30:55.216940       1 flags.go:33] FLAG: --cloud-provider="azure"
I0320 21:30:55.216943       1 flags.go:33] FLAG: --cloud-provider-gce-lb-src-cidrs="130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16"
I0320 21:30:55.216954       1 flags.go:33] FLAG: --container-hints="/etc/cadvisor/container_hints.json"
I0320 21:30:55.216959       1 flags.go:33] FLAG: --containerd="unix:///var/run/containerd.sock"
I0320 21:30:55.216965       1 flags.go:33] FLAG: --contention-profiling="false"
I0320 21:30:55.216971       1 flags.go:33] FLAG: --cors-allowed-origins="[]"
I0320 21:30:55.216979       1 flags.go:33] FLAG: --default-not-ready-toleration-seconds="300"
I0320 21:30:55.217007       1 flags.go:33] FLAG: --default-unreachable-toleration-seconds="300"
I0320 21:30:55.217013       1 flags.go:33] FLAG: --default-watch-cache-size="100"
I0320 21:30:55.217019       1 flags.go:33] FLAG: --delete-collection-workers="1"
I0320 21:30:55.217023       1 flags.go:33] FLAG: --deserialization-cache-size="0"
I0320 21:30:55.217027       1 flags.go:33] FLAG: --disable-admission-plugins="[]"
I0320 21:30:55.217030       1 flags.go:33] FLAG: --docker="unix:///var/run/docker.sock"
I0320 21:30:55.217034       1 flags.go:33] FLAG: --docker-env-metadata-whitelist=""
I0320 21:30:55.217037       1 flags.go:33] FLAG: --docker-only="false"
I0320 21:30:55.217041       1 flags.go:33] FLAG: --docker-root="/var/lib/docker"
I0320 21:30:55.217044       1 flags.go:33] FLAG: --docker-tls="false"
I0320 21:30:55.217047       1 flags.go:33] FLAG: --docker-tls-ca="ca.pem"
I0320 21:30:55.217050       1 flags.go:33] FLAG: --docker-tls-cert="cert.pem"
I0320 21:30:55.217053       1 flags.go:33] FLAG: --docker-tls-key="key.pem"
I0320 21:30:55.217056       1 flags.go:33] FLAG: --enable-admission-plugins="[NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota]"
I0320 21:30:55.217070       1 flags.go:33] FLAG: --enable-aggregator-routing="false"
I0320 21:30:55.217074       1 flags.go:33] FLAG: --enable-bootstrap-token-auth="true"
I0320 21:30:55.217077       1 flags.go:33] FLAG: --enable-garbage-collector="true"
I0320 21:30:55.217080       1 flags.go:33] FLAG: --enable-load-reader="false"
I0320 21:30:55.217083       1 flags.go:33] FLAG: --enable-logs-handler="true"
I0320 21:30:55.217087       1 flags.go:33] FLAG: --enable-swagger-ui="false"
I0320 21:30:55.217093       1 flags.go:33] FLAG: --encryption-provider-config=""
I0320 21:30:55.217098       1 flags.go:33] FLAG: --endpoint-reconciler-type="lease"
I0320 21:30:55.217103       1 flags.go:33] FLAG: --etcd-cafile="/etc/kubernetes/certs/ca.crt"
I0320 21:30:55.217115       1 flags.go:33] FLAG: --etcd-certfile="/etc/kubernetes/certs/etcdclient.crt"
I0320 21:30:55.217119       1 flags.go:33] FLAG: --etcd-compaction-interval="5m0s"
I0320 21:30:55.217122       1 flags.go:33] FLAG: --etcd-count-metric-poll-period="1m0s"
I0320 21:30:55.217125       1 flags.go:33] FLAG: --etcd-keyfile="/etc/kubernetes/certs/etcdclient.key"
I0320 21:30:55.217129       1 flags.go:33] FLAG: --etcd-prefix="/registry"
I0320 21:30:55.217132       1 flags.go:33] FLAG: --etcd-servers="[https://127.0.0.1:2379]"
I0320 21:30:55.217137       1 flags.go:33] FLAG: --etcd-servers-overrides="[]"
I0320 21:30:55.217141       1 flags.go:33] FLAG: --event-storage-age-limit="default=0"
I0320 21:30:55.217145       1 flags.go:33] FLAG: --event-storage-event-limit="default=0"
I0320 21:30:55.217148       1 flags.go:33] FLAG: --event-ttl="1h0m0s"
I0320 21:30:55.217151       1 flags.go:33] FLAG: --experimental-encryption-provider-config=""
I0320 21:30:55.217154       1 flags.go:33] FLAG: --external-hostname=""
I0320 21:30:55.217157       1 flags.go:33] FLAG: --feature-gates=""
I0320 21:30:55.217175       1 flags.go:33] FLAG: --global-housekeeping-interval="1m0s"
I0320 21:30:55.217182       1 flags.go:33] FLAG: --help="false"
I0320 21:30:55.217196       1 flags.go:33] FLAG: --housekeeping-interval="10s"
I0320 21:30:55.217200       1 flags.go:33] FLAG: --http2-max-streams-per-connection="0"
I0320 21:30:55.217203       1 flags.go:33] FLAG: --insecure-bind-address="127.0.0.1"
I0320 21:30:55.217207       1 flags.go:33] FLAG: --insecure-port="8080"
I0320 21:30:55.217211       1 flags.go:33] FLAG: --kubelet-certificate-authority=""
I0320 21:30:55.217214       1 flags.go:33] FLAG: --kubelet-client-certificate="/etc/kubernetes/certs/client.crt"
I0320 21:30:55.217217       1 flags.go:33] FLAG: --kubelet-client-key="/etc/kubernetes/certs/client.key"
I0320 21:30:55.217221       1 flags.go:33] FLAG: --kubelet-https="true"
I0320 21:30:55.217224       1 flags.go:33] FLAG: --kubelet-port="10250"
I0320 21:30:55.217229       1 flags.go:33] FLAG: --kubelet-preferred-address-types="[Hostname,InternalDNS,InternalIP,ExternalDNS,ExternalIP]"
I0320 21:30:55.217235       1 flags.go:33] FLAG: --kubelet-read-only-port="10255"
I0320 21:30:55.217238       1 flags.go:33] FLAG: --kubelet-timeout="5s"
I0320 21:30:55.217242       1 flags.go:33] FLAG: --kubernetes-service-node-port="0"
I0320 21:30:55.217245       1 flags.go:33] FLAG: --log-backtrace-at=":0"
I0320 21:30:55.217257       1 flags.go:33] FLAG: --log-cadvisor-usage="false"
I0320 21:30:55.217264       1 flags.go:33] FLAG: --log-dir=""
I0320 21:30:55.217276       1 flags.go:33] FLAG: --log-file=""
I0320 21:30:55.217282       1 flags.go:33] FLAG: --log-flush-frequency="5s"
I0320 21:30:55.217287       1 flags.go:33] FLAG: --logtostderr="true"
I0320 21:30:55.217298       1 flags.go:33] FLAG: --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
I0320 21:30:55.217302       1 flags.go:33] FLAG: --master-service-namespace="default"
I0320 21:30:55.217305       1 flags.go:33] FLAG: --max-connection-bytes-per-sec="0"
I0320 21:30:55.217309       1 flags.go:33] FLAG: --max-mutating-requests-inflight="200"
I0320 21:30:55.217312       1 flags.go:33] FLAG: --max-requests-inflight="400"
I0320 21:30:55.217315       1 flags.go:33] FLAG: --mesos-agent="127.0.0.1:5051"
I0320 21:30:55.217318       1 flags.go:33] FLAG: --mesos-agent-timeout="10s"
I0320 21:30:55.217322       1 flags.go:33] FLAG: --min-request-timeout="1800"
I0320 21:30:55.217325       1 flags.go:33] FLAG: --oidc-ca-file=""
I0320 21:30:55.217328       1 flags.go:33] FLAG: --oidc-client-id=""
I0320 21:30:55.217331       1 flags.go:33] FLAG: --oidc-groups-claim=""
I0320 21:30:55.217334       1 flags.go:33] FLAG: --oidc-groups-prefix=""
I0320 21:30:55.217337       1 flags.go:33] FLAG: --oidc-issuer-url=""
I0320 21:30:55.217340       1 flags.go:33] FLAG: --oidc-required-claim=""
I0320 21:30:55.217345       1 flags.go:33] FLAG: --oidc-signing-algs="[RS256]"
I0320 21:30:55.217356       1 flags.go:33] FLAG: --oidc-username-claim="sub"
I0320 21:30:55.217361       1 flags.go:33] FLAG: --oidc-username-prefix=""
I0320 21:30:55.217366       1 flags.go:33] FLAG: --port="8080"
I0320 21:30:55.217372       1 flags.go:33] FLAG: --profiling="false"
I0320 21:30:55.217377       1 flags.go:33] FLAG: --proxy-client-cert-file="/etc/kubernetes/certs/proxy.crt"
I0320 21:30:55.217383       1 flags.go:33] FLAG: --proxy-client-key-file="/etc/kubernetes/certs/proxy.key"
I0320 21:30:55.217389       1 flags.go:33] FLAG: --repair-malformed-updates="false"
I0320 21:30:55.217394       1 flags.go:33] FLAG: --request-timeout="1m0s"
I0320 21:30:55.217443       1 flags.go:33] FLAG: --requestheader-allowed-names="[aggregator]"
I0320 21:30:55.217447       1 flags.go:33] FLAG: --requestheader-client-ca-file="/etc/kubernetes/certs/proxy-ca.crt"
I0320 21:30:55.217451       1 flags.go:33] FLAG: --requestheader-extra-headers-prefix="[X-Remote-Extra-]"
I0320 21:30:55.217458       1 flags.go:33] FLAG: --requestheader-group-headers="[X-Remote-Group]"
I0320 21:30:55.217475       1 flags.go:33] FLAG: --requestheader-username-headers="[X-Remote-User]"
I0320 21:30:55.217489       1 flags.go:33] FLAG: --runtime-config=""
I0320 21:30:55.217513       1 flags.go:33] FLAG: --secure-port="443"
I0320 21:30:55.217519       1 flags.go:33] FLAG: --service-account-api-audiences="[]"
I0320 21:30:55.217526       1 flags.go:33] FLAG: --service-account-issuer=""
I0320 21:30:55.217537       1 flags.go:33] FLAG: --service-account-key-file="[/etc/kubernetes/certs/apiserver.key]"
I0320 21:30:55.217545       1 flags.go:33] FLAG: --service-account-lookup="true"
I0320 21:30:55.217548       1 flags.go:33] FLAG: --service-account-max-token-expiration="0s"
I0320 21:30:55.217552       1 flags.go:33] FLAG: --service-account-signing-key-file=""
I0320 21:30:55.217555       1 flags.go:33] FLAG: --service-cluster-ip-range="10.0.0.0/16"
I0320 21:30:55.217567       1 flags.go:33] FLAG: --service-node-port-range="30000-32767"
I0320 21:30:55.217573       1 flags.go:33] FLAG: --skip-headers="false"
I0320 21:30:55.217577       1 flags.go:33] FLAG: --ssh-keyfile=""
I0320 21:30:55.217580       1 flags.go:33] FLAG: --ssh-user=""
I0320 21:30:55.217583       1 flags.go:33] FLAG: --stderrthreshold="2"
I0320 21:30:55.217586       1 flags.go:33] FLAG: --storage-backend="etcd3"
I0320 21:30:55.217590       1 flags.go:33] FLAG: --storage-driver-buffer-duration="1m0s"
I0320 21:30:55.217594       1 flags.go:33] FLAG: --storage-driver-db="cadvisor"
I0320 21:30:55.217607       1 flags.go:33] FLAG: --storage-driver-host="localhost:8086"
I0320 21:30:55.217614       1 flags.go:33] FLAG: --storage-driver-password="root"
I0320 21:30:55.217621       1 flags.go:33] FLAG: --storage-driver-secure="false"
I0320 21:30:55.217624       1 flags.go:33] FLAG: --storage-driver-table="stats"
I0320 21:30:55.217629       1 flags.go:33] FLAG: --storage-driver-user="root"
I0320 21:30:55.217634       1 flags.go:33] FLAG: --storage-media-type="application/vnd.kubernetes.protobuf"
I0320 21:30:55.217641       1 flags.go:33] FLAG: --storage-versions="admission.k8s.io/v1beta1,admissionregistration.k8s.io/v1beta1,apps/v1,auditregistration.k8s.io/v1alpha1,authentication.k8s.io/v1,authorization.k8s.io/v1,autoscaling/v1,batch/v1,certificates.k8s.io/v1beta1,coordination.k8s.io/v1beta1,events.k8s.io/v1beta1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,networking.k8s.io/v1,policy/v1beta1,rbac.authorization.k8s.io/v1,scheduling.k8s.io/v1beta1,settings.k8s.io/v1alpha1,storage.k8s.io/v1,v1"
I0320 21:30:55.217655       1 flags.go:33] FLAG: --target-ram-mb="0"
I0320 21:30:55.217659       1 flags.go:33] FLAG: --tls-cert-file="/etc/kubernetes/certs/apiserver.crt"
I0320 21:30:55.217663       1 flags.go:33] FLAG: --tls-cipher-suites="[]"
I0320 21:30:55.217667       1 flags.go:33] FLAG: --tls-min-version=""
I0320 21:30:55.217670       1 flags.go:33] FLAG: --tls-private-key-file="/etc/kubernetes/certs/apiserver.key"
I0320 21:30:55.217674       1 flags.go:33] FLAG: --tls-sni-cert-key="[]"
I0320 21:30:55.217678       1 flags.go:33] FLAG: --token-auth-file=""
I0320 21:30:55.217681       1 flags.go:33] FLAG: --v="4"
I0320 21:30:55.217685       1 flags.go:33] FLAG: --version="false"
I0320 21:30:55.217690       1 flags.go:33] FLAG: --vmodule=""
I0320 21:30:55.217693       1 flags.go:33] FLAG: --watch-cache="true"
I0320 21:30:55.217696       1 flags.go:33] FLAG: --watch-cache-sizes="[]"
I0320 21:30:55.217708       1 services.go:45] Setting service IP to "10.0.0.1" (read-write).
I0320 21:30:55.217721       1 server.go:557] external host was not specified, using 10.246.23.251
I0320 21:30:55.217728       1 server.go:600] Initializing cache sizes based on 0MB limit
I0320 21:30:55.217844       1 server.go:146] Version: v1.13.4
Error: unable to load server certificate: tls: private key does not match public key
Usage:
  hyperkube kube-apiserver [flags]...

PacoGuy avatar Mar 20 '19 21:03 PacoGuy

Does the exact same workflow work on a prior version of aks-engine?

jackfrancis avatar Mar 20 '19 23:03 jackfrancis

It does, and none of the previous stable clusters we have up now are in a similar state. Even the ones that were launched prior to 0.32.3 just last week didn't seem to have this issue but I will validate that with a previous version tomorrow to be sure... Just fingers crossed that the vmss launch properly without CSE issues so that we can validate that.

PacoGuy avatar Mar 21 '19 00:03 PacoGuy

Ok, this might have been on my end. I recreated the cluster with an availability set then created a node image from that vm. I am not seeing any issues using the new node image and the latest aks-engine release. Thank you!

PacoGuy avatar Apr 02 '19 16:04 PacoGuy