GithubHelp home page GithubHelp logo

Comments (7)

longwuyuan avatar longwuyuan commented on June 22, 2024

/remove-kind bug
/triage accepted

post your values.yaml file exactly as it is being used. What you posted is invalid. The field is controller.service.annotation

from ingress-nginx.

longwuyuan avatar longwuyuan commented on June 22, 2024

My values.yaml

% cat values.yaml 
controller:
  service:
    annotations:
      load-balancer.hetzner.cloud/location: nbg1
[~/Documents/ingressnginxissues/11272] 

My controller-service.yaml after helm templating using my values.yaml shows the annotation

% helm install ingress-nginx-2 ingress-nginx/ingress-nginx  \
--namespace ingress-nginx-2 \
--set controller.ingressClassResource.name=nginx-two \
--set controller.ingressClass=nginx-two \
--set controller.ingressClassResource.controllerValue="example.com/ingress-nginx-2" \
--set controller.ingressClassResource.enabled=true \
--set controller.ingressClassByName=true \
--values values.yaml \
--dry-run=client  | grep "controller-service.yaml" -A 6
# Source: ingress-nginx/templates/controller-service.yaml
apiVersion: v1
kind: Service
metadata:
  annotations:
    load-balancer.hetzner.cloud/location: "nbg1"
  labels:
[~/Documents/ingressnginxissues/11272] 

from ingress-nginx.

longwuyuan avatar longwuyuan commented on June 22, 2024

/remove-triage accepted
/kind support

from ingress-nginx.

clickersmudge avatar clickersmudge commented on June 22, 2024

Hi @longwuyuan thank you for your quick response.

Chart.yaml

apiVersion: v2
name: ingress-nginx
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer

type: application

version: 4.10.0

appVersion: "1.10.0"

dependencies:
- name: ingress-nginx
  version: 4.10.0
  repository: https://kubernetes.github.io/ingress-nginx

values.yaml

controller:
  nodeSelector:
    architecture: arm
  autoscaling:
    enabled: true
  service:
    annotations:
      load-balancer.hetzner.cloud/location: nbg1

obraz

Working
obraz

I don't know what I was doing wrong earlier.

Maybe other labels
values.yaml

controller:
  nodeSelector:
    architecture: arm
  autoscaling:
    enabled: true
  service:
    annotations:
      load-balancer.hetzner.cloud/location: nbg1
      load-balancer.hetzner.cloud/type: lb11
      load-balancer.hetzner.cloud/use-private-ip: "true"
      load-balancer.hetzner.cloud/disable-private-ingress: "true"

obraz

Yes,
it looks like other labels are causing this.

@longwuyuan Do you have any idea what is causing the problem with several labels?

from ingress-nginx.

longwuyuan avatar longwuyuan commented on June 22, 2024

no idea. but almost certainly seems like parsing. do the helm templating and you will know.

Please close the issue if not a problem of the controller.

from ingress-nginx.

longwuyuan avatar longwuyuan commented on June 22, 2024

/close

reopen if there is a problem found in the controller

from ingress-nginx.

k8s-ci-robot avatar k8s-ci-robot commented on June 22, 2024

@longwuyuan: Closing this issue.

In response to this:

/close

reopen if there is a problem found in the controller

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from ingress-nginx.

Related Issues (20)

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.