Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to install ingress #965

Closed
rkaler opened this issue Mar 20, 2019 · 6 comments
Closed

not able to install ingress #965

rkaler opened this issue Mar 20, 2019 · 6 comments

Comments

@rkaler
Copy link

rkaler commented Mar 20, 2019

command used:

helm install ingress-per-domain --name soa-ingress --namespace rkoim --values ingress-per-domain/values.yaml
Error Message :
Error: error validating "": error validating data: found invalid field annotations for v1beta1.IngressSpec

Values.xml

sh-4.2$ cat ingress-per-domain/values.yaml

type: TRAEFIK

wlsDomain:
domainUID: soainfra
clusterName: soa_cluster
managedServerPort: 8001

traefik:
hostname: adc00wvh.us.oracle.com

sh-4.2$ cat ingress-per-domain/templates/traefik-ingress.yaml

{{- if eq .Values.type "TRAEFIK" }}

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ .Values.wlsDomain.domainUID }}-traefik
namespace: {{ .Release.Namespace }}
labels:
weblogic.resourceVersion: domain-v2
spec:
annotations:
kubernetes.io/ingress.class: traefik
rules:

  • host: '{{ .Values.traefik.hostname }}'
    http:
    paths:
    • path:
      backend:
      serviceName: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.clusterName | lower | replace "_" "-" }}'
      servicePort: {{ .Values.wlsDomain.managedServerPort }}
      {{- end }}
@rjeberhard
Copy link
Member

@lilyhe123, I believe we just fixed this with PR #951, correct?

@lilyhe123
Copy link
Contributor

Not sure. Usually the misplaced annotation doesn't cause any validation error, at least on bare-metal environment. But you can try the fix anyway. @rkaler

@rkaler
Copy link
Author

rkaler commented Mar 22, 2019

Tried on the latest build as well. I am getting the same exception. I tried to install the traefik-operator again with the new build and then tried to install ingress-per-domain again.. but it fails with the same exception @lilyhe123 @rjeberhard

@lilyhe123
Copy link
Contributor

@rkaler can you add --dry-run --debug when running helm install as below and past the output? So I can see the generated Ingress resource.

helm install --dry-run --debug ingress-per-domain --name soa-ingress --namespace rkoim --values ingress-per-domain/values.yaml

@rkaler
Copy link
Author

rkaler commented Mar 25, 2019

@lilyhe123

It gives the sample exception even with the debug logs

sh-4.2$ helm install --dry-run --debug ingress-per-domain --name soa-ingress --namespace rkoim --values ingress-per-domain/values.yaml
[debug] Created tunnel using local port: '50560'

[debug] SERVER: "127.0.0.1:50560"

[debug] Original chart version: ""
[debug] CHART PATH: /scratch/rkaler/weblogic-kubernetes-operator/kubernetes/samples/charts/ingress-per-domain

Error: error validating "": error validating data: found invalid field annotations for v1beta1.IngressSpec

@lilyhe123
Copy link
Contributor

lilyhe123 commented Mar 26, 2019

Per our IM, the k8s version you used is v1.9.2 that is an old version the operator doesn't support. See doc https://oracle.github.io/weblogic-kubernetes-operator/userguide/introduction/introduction/#prerequisites. Pls upgrade to k8s 1.10 at least and rerun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants