Skip to content

Commit

Permalink
默认启用ShareProcessNamespace,解决java pid=1的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
qingmu-io committed Apr 11, 2020
1 parent 2e9039d commit ac48d97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/springbootapplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ func (r *SpringBootApplicationReconciler) Reconcile(req ctrl.Request) (ctrl.Resu
if springBoot.Resource.Cpu.Limit != "" {
limitRlist["cpu"] = resource.MustParse(springBoot.Resource.Cpu.Limit)
}
ShareProcessNamespace := true
podSpec := &v1.PodSpec{
ShareProcessNamespace: &ShareProcessNamespace,
Affinity: &v1.Affinity{
PodAntiAffinity: &v1.PodAntiAffinity{
PreferredDuringSchedulingIgnoredDuringExecution: []v1.WeightedPodAffinityTerm{
Expand Down

0 comments on commit ac48d97

Please sign in to comment.