Welcome to the Linux Foundation Forum!

Lab 10.1

I was trying to follow the lab but I kept getting a 404 on downloading the traefik daemonset
$ wget https://tinyurl.com/yawpexdt -O traefik-ds.yaml
A bit of googling later I found the manifest here: https://gist.github.com/tasdikrahman/1f9f496dec39c2a5697bf9a50276c7c4 (hopefully it is the same one as the tinyurl was pointing to)

Unfortunately, when I tried to apply the ingress rule, I ran into an error.
$ kubectl create -f ingress.rule.yaml error: error validating "ingress.rule.yaml": error validating data: [ValidationError(Ingress.spec.rules[0].http): unknown field "path" in io.k8s.api.extensions.v1beta1.HTTPIngressRuleValue, ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "serviceName" in io.k8s.api.extensions.v1beta1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): unknown field "servicePort" in io.k8s.api.extensions.v1beta1.HTTPIngressPath, ValidationError(Ingress.spec.rules[0].http.paths[0]): missing required field "backend" in io.k8s.api.extensions.v1beta1.HTTPIngressPath]; if you choose to ignore these errors, turn validation off with --validate=false

Here is the content of the ingress.rule.yaml
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-test annotations: kubernetes.io/ingress.class: traefik spec: rules: - host: www.example.com http: paths: - backend: serviceName: secondapp servicePort: 80 path: /

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training