Last active
September 29, 2020 10:41
-
-
Save repeterande/892e5d4137bfaa51b2fac78515162b85 to your computer and use it in GitHub Desktop.
google cloud svc type LoadBalancer stuck in 'pending'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ k get svc | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 22h | |
nginx-lb LoadBalancer 10.105.90.11 <pending> 80:32635/TCP 24m | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: "2020-09-29T10:15:53Z" | |
labels: | |
app: nginx-with-lb | |
managedFields: | |
- apiVersion: v1 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:metadata: | |
f:labels: | |
.: {} | |
f:app: {} | |
f:spec: | |
f:externalTrafficPolicy: {} | |
f:ports: | |
.: {} | |
k:{"port":80,"protocol":"TCP"}: | |
.: {} | |
f:port: {} | |
f:protocol: {} | |
f:selector: | |
.: {} | |
f:app: {} | |
f:sessionAffinity: {} | |
f:type: {} | |
manager: kubectl-expose | |
operation: Update | |
time: "2020-09-29T10:15:53Z" | |
- apiVersion: v1 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:spec: | |
f:ports: | |
k:{"port":80,"protocol":"TCP"}: | |
f:targetPort: {} | |
manager: kubectl-edit | |
operation: Update | |
time: "2020-09-29T10:36:04Z" | |
name: nginx-lb | |
namespace: default | |
resourceVersion: "63188" | |
selfLink: /api/v1/namespaces/default/services/nginx-lb | |
uid: cdd5d37f-3f80-4f28-88a6-7467bdf7b789 | |
spec: | |
clusterIP: 10.105.90.11 | |
externalTrafficPolicy: Cluster | |
ports: | |
- nodePort: 32635 | |
port: 80 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app: nginx-with-lb | |
sessionAffinity: None | |
type: LoadBalancer | |
status: | |
loadBalancer: {} | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "2" | |
creationTimestamp: "2020-09-29T07:54:25Z" | |
generation: 2 | |
labels: | |
app: nginx-with-lb | |
managedFields: | |
- apiVersion: apps/v1 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:metadata: | |
f:labels: | |
.: {} | |
f:app: {} | |
f:spec: | |
f:progressDeadlineSeconds: {} | |
f:replicas: {} | |
f:revisionHistoryLimit: {} | |
f:selector: | |
f:matchLabels: | |
.: {} | |
f:app: {} | |
f:strategy: | |
f:rollingUpdate: | |
.: {} | |
f:maxSurge: {} | |
f:maxUnavailable: {} | |
f:type: {} | |
f:template: | |
f:metadata: | |
f:labels: | |
.: {} | |
f:app: {} | |
f:spec: | |
f:containers: | |
k:{"name":"nginx"}: | |
.: {} | |
f:image: {} | |
f:imagePullPolicy: {} | |
f:name: {} | |
f:resources: {} | |
f:terminationMessagePath: {} | |
f:terminationMessagePolicy: {} | |
f:dnsPolicy: {} | |
f:restartPolicy: {} | |
f:schedulerName: {} | |
f:securityContext: {} | |
f:terminationGracePeriodSeconds: {} | |
manager: kubectl-create | |
operation: Update | |
time: "2020-09-29T07:54:25Z" | |
- apiVersion: apps/v1 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:spec: | |
f:template: | |
f:spec: | |
f:containers: | |
k:{"name":"nginx"}: | |
f:ports: | |
.: {} | |
k:{"containerPort":80,"protocol":"TCP"}: | |
.: {} | |
f:containerPort: {} | |
f:protocol: {} | |
manager: kubectl-edit | |
operation: Update | |
time: "2020-09-29T10:06:01Z" | |
- apiVersion: apps/v1 | |
fieldsType: FieldsV1 | |
fieldsV1: | |
f:metadata: | |
f:annotations: | |
.: {} | |
f:deployment.kubernetes.io/revision: {} | |
f:status: | |
f:availableReplicas: {} | |
f:conditions: | |
.: {} | |
k:{"type":"Available"}: | |
.: {} | |
f:lastTransitionTime: {} | |
f:lastUpdateTime: {} | |
f:message: {} | |
f:reason: {} | |
f:status: {} | |
f:type: {} | |
k:{"type":"Progressing"}: | |
.: {} | |
f:lastTransitionTime: {} | |
f:lastUpdateTime: {} | |
f:message: {} | |
f:reason: {} | |
f:status: {} | |
f:type: {} | |
f:observedGeneration: {} | |
f:readyReplicas: {} | |
f:replicas: {} | |
f:updatedReplicas: {} | |
manager: kube-controller-manager | |
operation: Update | |
time: "2020-09-29T10:06:04Z" | |
name: nginx-with-lb | |
namespace: default | |
resourceVersion: "58289" | |
selfLink: /apis/apps/v1/namespaces/default/deployments/nginx-with-lb | |
uid: fa7b32b0-a984-451e-80cb-102d3d022467 | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
app: nginx-with-lb | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: nginx-with-lb | |
spec: | |
containers: | |
- image: nginx | |
imagePullPolicy: Always | |
name: nginx | |
ports: | |
- containerPort: 80 | |
protocol: TCP | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: | |
availableReplicas: 1 | |
conditions: | |
- lastTransitionTime: "2020-09-29T10:04:07Z" | |
lastUpdateTime: "2020-09-29T10:04:07Z" | |
message: Deployment has minimum availability. | |
reason: MinimumReplicasAvailable | |
status: "True" | |
type: Available | |
- lastTransitionTime: "2020-09-29T07:54:25Z" | |
lastUpdateTime: "2020-09-29T10:06:04Z" | |
message: ReplicaSet "nginx-with-lb-86648f4b85" has successfully progressed. | |
reason: NewReplicaSetAvailable | |
status: "True" | |
type: Progressing | |
observedGeneration: 2 | |
readyReplicas: 1 | |
replicas: 1 | |
updatedReplicas: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment