|
nex opened 2 years ago
|
New commits added 2 years ago
|
|
![]() |
Thanks for the suggestion. Greatly appreciated! Will look into this. As to pull request #30: before that, OneDev does not have helm deployment yet (only has k8s resource based deployment). So I merged it, but found that it needs many tweaks for production use. So I decided to work out a minimum usable but robust deployment based off that contribution. |
![]() |
@nex I started a new gke cluster to run below command to deploy the chart:
After deployment, service Also for default set up, I hope to use same service for ssh and http, for below reasons:
I understand that separating these two services is necessary for some teams. Maybe we can add an option in In general, I hope that things start simple, and flexibility is achieved with additional options. This is what helm deployment works currently (progressively support ingress and letsencrypt): https://code.onedev.io/projects/162/blob/main/pages/deploy-into-k8s.md |
|
Did you set What I've changed was that if you explicitly set |
|
This is the original
|
|
Multiple services can use the same
I see, in my case I've configured my load balacner to forward port 22 to the pod, and forward port 80 and 443 to my ingress controller, so I can use only one external IP address and a single DNS name, but generally I got your point. |
![]() |
Doesn't this mean: use LoadBalancer if ingress host is |
|
Yeah my bad, I missed the
|
New commits added 2 years ago
|
|
![]() |
This is great. Thank you 👍 |
|
You're welcome. I'll think about how to structure the template to support both single/spilit service use case. PS 中文通吗? |
![]() |
太棒了,非常感谢。说实话,我对Kubernetes/Helm了解的也不是很深入,只是了解到够我完成应该做的功能而已。 |
New commits added 2 years ago
|
|
|
I've updated the PR, added an option
|
|
PS 不客气,最近刚发现这个项目想要部署到自己集群尝试一下,very impressed你一个人开发出这么完整的平台,好奇你的主业做什么的 😁 |
![]() |
感谢贡献 ??,下班后我看下。我工作上主要是负责配置管理方面的事情。动作也不算快,日积月累吧。 |
![]() |
Robin Shen merged 2 years ago
|
![]() |
我这边先合并,然后一些小的问题我这边来改。 |
I only saw #30 a similar PR after I've done this modification. I saw that one merged but didn't find the code in
main
branch, strange. I will open it anyway since I've done more than that PR.Firstly it's better spilitting HTTP and SSH services. In my case for example, I need the HTTP service to be of type
ClusterIP
to use it with my ingress controller, for the SSH though, I use the typeLoadBalancer
and add annotations to create a load balancer on Alibaba Cloud.I also needed the
externalTrafficPolicy
field on the SSH service to be set toLocal
to preserve source IP. But I've add more settings that could be useful in some use cases:Mostly adapted from Gitea's chart here.
The default behavior and the default settings of the chart remains unchanged.