Hi, a kuberentes cluster created on google cloud, cluster is 1.9.2 version.

Ingress never creates, service is nodeport. Why?

kubectl describe ing my-echo-ingress
Name:             my-echo-ingress
Namespace:        default
Address:          
Default backend:  my-echo-svc:my-http-port (10.32.0.124:80)
Rules:
  Host  Path  Backends
  ----  ----  --------
  *     *     my-echo-svc:my-http-port (10.32.0.124:80)
Annotations:
Events:
  Type     Reason  Age                 From                     Message
  ----     ------  ----                ----                     -------
  Normal   ADD     11m                 loadbalancer-controller  
default/my-echo-ingress
  Warning  GCE     10m (x3 over 11m)   loadbalancer-controller  googleapi: 
Error 400: Invalid value for field 'namedPorts[2].port': '0'. Must be greater 
than or equal to 1, invalid
  Warning  GCE     9m (x3 over 11m)    loadbalancer-controller  googleapi: 
Error 400: Invalid value for field 'namedPorts[1].port': '0'. Must be greater 
than or equal to 1, invalid
  Warning  GCE     59s (x13 over 11m)  loadbalancer-controller  googleapi: 
Error 400: Invalid value for field 'namedPorts[0].port': '0'. Must be greater 
than or equal to 1, invalid

Below the super simple yaml used for testing. 

---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: helloweb
  labels:
    app: hello
spec:
  template:
    metadata:
      labels:
        app: hello
        tier: web
    spec:
      containers:
      - name: hello-app
        image: gcr.io/google-samples/hello-app:1.0
        ports:
        - containerPort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: helloweb
  annotations:
    kubernetes.io/ingress.global-static-ip-name: kubernetes-ingress-1
  labels:
    app: hello
spec:
  backend:
    serviceName: helloweb-backend
    servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: helloweb-backend
  labels:
    app: hello
spec:
  type: NodePort
  selector:
    app: hello
    tier: web
  ports:
  - port: 8080
    targetPort: 8080


(the example deployment/service/ingress from 
https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer does 
not work either. Same ingress error as above).

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-users] GCE ... strzelecki . maciek

Reply via email to