Coder Social home page Coder Social logo

vagrant-k8s-cluster's People

Contributors

g-sree avatar spiritsree avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gokulsiteminder

vagrant-k8s-cluster's Issues

Not able to communicate to pods running on different nodes

I1031 09:40:34.153647    6557 round_trippers.go:452]     Content-Type: text/plain; charset=utf-8
I1031 09:40:34.153651    6557 round_trippers.go:452]     X-Content-Type-Options: nosniff
I1031 09:40:34.153655    6557 round_trippers.go:452]     Content-Length: 20
I1031 09:40:34.153659    6557 round_trippers.go:452]     Date: Wed, 30 Oct 2019 22:40:33 GMT
I1031 09:40:34.163020    6557 request.go:968] Response Body: service unavailable
I1031 09:40:34.173545    6557 request.go:1171] body was not decodable (unable to check for Status): couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
I1031 09:40:34.173564    6557 cached_discovery.go:78] skipped caching discovery info due to the server is currently unable to handle the request
I1031 09:40:34.174505    6557 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.16.2 (darwin/amd64) kubernetes/c97fe50" 'https://172.28.128.3:6443/api/v1/namespaces/kube-system/pods/metrics-server-677766dccd-wjqbs'
I1031 09:40:34.178307    6557 round_trippers.go:443] GET https://172.28.128.3:6443/api/v1/namespaces/kube-system/pods/metrics-server-677766dccd-wjqbs 200 OK in 3 milliseconds
I1031 09:40:34.178356    6557 round_trippers.go:449] Response Headers:
I1031 09:40:34.178369    6557 round_trippers.go:452]     Content-Type: application/json
I1031 09:40:34.178398    6557 round_trippers.go:452]     Content-Length: 2726
I1031 09:40:34.178406    6557 round_trippers.go:452]     Date: Wed, 30 Oct 2019 22:40:33 GMT
I1031 09:40:34.178475    6557 request.go:968] Response Body: {"kind":"Pod","apiVersion":"v1","metadata":{"name":"metrics-server-677766dccd-wjqbs","generateName":"metrics-server-677766dccd-","namespace":"kube-system","selfLink":"/api/v1/namespaces/kube-system/pods/metrics-server-677766dccd-wjqbs","uid":"38e91d55-fb05-11e9-a97a-02dd097c7616","resourceVersion":"6349","creationTimestamp":"2019-10-30T11:05:45Z","labels":{"k8s-app":"metrics-server","pod-template-hash":"677766dccd"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"metrics-server-677766dccd","uid":"384dccfc-fb05-11e9-a97a-02dd097c7616","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"tmp-dir","emptyDir":{}},{"name":"metrics-server-token-mhngh","secret":{"secretName":"metrics-server-token-mhngh","defaultMode":420}}],"containers":[{"name":"metrics-server","image":"k8s.gcr.io/metrics-server-amd64:v0.3.6","args":["--kubelet-insecure-tls","--kubelet-preferred-address-types=InternalIP"],"resources":{},"volumeMounts":[{"name":"tmp-dir","mountPath":"/tmp"},{"name":"metrics-server-token-mhngh","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"metrics-server","serviceAccount":"metrics-server","nodeName":"node-1","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Running","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2019-10-30T11:33:01Z"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2019-10-30T11:33:41Z"},{"type":"ContainersReady","status":"True","lastProbeTime":null,"lastTransitionTime":"2019-10-30T11:33:41Z"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2019-10-30T11:33:02Z"}],"hostIP":"172.28.128.4","podIP":"10.244.1.3","startTime":"2019-10-30T11:33:01Z","containerStatuses":[{"name":"metrics-server","state":{"running":{"startedAt":"2019-10-30T11:33:40Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"k8s.gcr.io/metrics-server-amd64:v0.3.6","imageID":"docker-pullable://k8s.gcr.io/metrics-server-amd64@sha256:c9c4e95068b51d6b33a9dccc61875df07dc650abbf4ac1a19d58b4628f89288b","containerID":"docker://3fa2a41fe4a471cf73da05d831e28191eefa39c589a1527fd28e8340c0ec337e"}],"qosClass":"BestEffort"}}
I1031 09:40:34.184320    6557 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.16.2 (darwin/amd64) kubernetes/c97fe50" 'https://172.28.128.3:6443/api/v1/namespaces/kube-system/pods/metrics-server-677766dccd-wjqbs/log'
I1031 09:40:34.188013    6557 round_trippers.go:443] GET https://172.28.128.3:6443/api/v1/namespaces/kube-system/pods/metrics-server-677766dccd-wjqbs/log 404 Not Found in 3 milliseconds
I1031 09:40:34.188032    6557 round_trippers.go:449] Response Headers:
I1031 09:40:34.188038    6557 round_trippers.go:452]     Content-Length: 276
I1031 09:40:34.188042    6557 round_trippers.go:452]     Date: Wed, 30 Oct 2019 22:40:33 GMT
I1031 09:40:34.188045    6557 round_trippers.go:452]     Content-Type: application/json
I1031 09:40:34.188064    6557 request.go:968] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource ( pods/log metrics-server-677766dccd-wjqbs)","reason":"NotFound","details":{"name":"metrics-server-677766dccd-wjqbs","kind":"pods/log"},"code":404}
I1031 09:40:34.188538    6557 helpers.go:199] server response object: [{
  "metadata": {},
  "status": "Failure",
  "message": "the server could not find the requested resource ( pods/log metrics-server-677766dccd-wjqbs)",
  "reason": "NotFound",
  "details": {
    "name": "metrics-server-677766dccd-wjqbs",
    "kind": "pods/log"
  },
  "code": 404
}]```

Sometimes the entire config won't get downloaded resulting in node display failure.

MASTERIP="172.28.128.3"
nc -C -I 8192 ${MASTERIP} 8888 | tee kube_config

node-2: error: Error loading config file "/root/.kube/config": v1.Config.AuthInfos: []v1.NamedAuthInfo: v1.NamedAuthInfo.AuthInfo: v1.AuthInfo.ClientKeyData: decode base64: illegal base64 data at input byte 884, error found in #10 byte of ...|c2pEbUVMW"}}]}|..., bigger context ...|ZUxkcXNTdlVQTC9yUlc0cy9QUHdBeVdkai84T2hCc2pEbUVMW"}}]}|...

Interpod communication issue

Created a API service and the registration failed because of connectivity issue to the service endpoint.

  message: 'no response from https://10.104.74.185:443: Get https://10.104.74.185:443:
     net/http: request canceled while waiting for connection (Client.Timeout exceeded
     while awaiting headers)'

Also tried to ping other pods from within pods which failed.

Node not joining to the cluster

node-1: discovery.bootstrapToken: Invalid value: "": using token-based discovery without caCertHashes can be unsafe. Set unsafeSkipCAVerification to continue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.