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

How to deploy two sets of non-interfering kong on a k8s cluster? #133

Closed
yangbin1212 opened this issue May 13, 2020 · 5 comments
Closed
Labels
question Further information is requested

Comments

@yangbin1212
Copy link

I have a k8s cluster, and dev env, test env, and prod env are deployed on the cluster. Now I want to use a kong for dev and test env, and another kong for prod. How to deploy?

@hbagdi hbagdi added the question Further information is requested label May 13, 2020
@hbagdi
Copy link
Member

hbagdi commented May 13, 2020

I have a k8s cluster, and dev env, test env, and prod env are deployed on the cluster.

This is generally not recommended for Kubernetes clusters. You should have isolated clusters.

Now I want to use a kong for dev and test env, and another kong for prod. How to deploy?

What have you tried? What problems did you run into?

@yangbin1212
Copy link
Author

I have a k8s cluster, and dev env, test env, and prod env are deployed on the cluster.

This is generally not recommended for Kubernetes clusters. You should have isolated clusters.

Now I want to use a kong for dev and test env, and another kong for prod. How to deploy?

What have you tried? What problems did you run into?

I tried to deploy two sets of the same kong, but the second set could not create crds, and the second set could not be used when the first set was deleted. I want my dev environment and prod environment to use different kong, but currently these environments are deployed on a k8s

@yangbin1212
Copy link
Author

The two sets of kong are not isolated, I can use any combination of IP and port to access the services and routes I added

@hbagdi
Copy link
Member

hbagdi commented May 14, 2020

I tried to deploy two sets of the same kong, but the second set could not create crds, and the second set could not be used when the first set was deleted. I want my dev environment and prod environment to use different kong, but currently these environments are deployed on a k8s

Yes this is a pain point currently. You will have to install CRD only once in the first release and then disable installing CRDs in other releases.

The two sets of kong are not isolated, I can use any combination of IP and port to access the services and routes I added

You need to use kubernetes.io/ingress.class annotation to seggregate configuration of two different classes.

@yangbin1212
Copy link
Author

I tried to deploy two sets of the same kong, but the second set could not create crds, and the second set could not be used when the first set was deleted. I want my dev environment and prod environment to use different kong, but currently these environments are deployed on a k8s

Yes this is a pain point currently. You will have to install CRD only once in the first release and then disable installing CRDs in other releases.

The two sets of kong are not isolated, I can use any combination of IP and port to access the services and routes I added

You need to use kubernetes.io/ingress.class annotation to seggregate configuration of two different classes.

Thank you for your answer, I will try the solution you said, now I close this issue

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

No branches or pull requests

2 participants