Code Monkey home page Code Monkey logo

Comments (4)

sandromello avatar sandromello commented on June 14, 2024 1

If anyone is having this problem an environment variable must be set to avoid creating a default namespace:

(...)
env:
  - name: POD_NAMESPACE
     value: kong-system
(...)

This behaviour will be fixed in future versions

from kong-ingress.

sandromello avatar sandromello commented on June 14, 2024

Hi,

  • Could you specify which version of Kubernetes are you using?
  • Are you running the kong-ingress inside of a Kubernetes cluster?

This should not be happening if you're running the ingress inside of a POD in kubernetes, the creation of a namespace is required if you're running the ingress outside of the cluster. To validate if this is true, the controller verifies if the POD_NAMESPACE variable is empty.

I forgot to specify the required RBAC options for having the ingress working with it.
For now you could specify a rolebinding enabling access to the following resources:

  • Services [update,patch,list,get]
  • Third Party Resource [create,list,get]
  • Ingress [update,patch,list,get]
  • Namespaces [create,list,get]
  • Domains [TPR - create,update,list,get,delete]

Another option is using the same certificates used to manage your cluster:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kong-ingress
  namespace: kong-system
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: kong-ingress
    spec:
      terminationGracePeriodSeconds: 60
      containers:
      - name: kong-ingress
        image: 'quay.io/koli/kong-ingress:v0.2.0-alpha'
        args:
        - --auto-claim
        - --wipe-on-delete
        - --kong-server=http://kong-admin:8001
        - --v=4
        - --logtostderr
        - --cert-file=/path/to/kube.crt
        - --key-file=/path/to/kube.key
        - --ca-file=/path/to/ca.crt

Warning: Use this only for testing, using RBAC is more secure than this option

from kong-ingress.

arundeepkurni avatar arundeepkurni commented on June 14, 2024

Thank you sandromello, helped me.
I think document need to change.

from kong-ingress.

sandromello avatar sandromello commented on June 14, 2024

Could this issue be closed ? I didn't understand what's wrong with the documentation, could you please open another issue explaining your issue?

from kong-ingress.

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.