Skip to content

Commit

Permalink
fix(scaffolds): better defaults
Browse files Browse the repository at this point in the history
- explicitly specify port protocol where missing
- larger resource limit for controller manager

Signed-off-by: longkai <[email protected]>
  • Loading branch information
longkai committed Jul 7, 2021
1 parent 7429836 commit 65062ab
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ spec:
- "--v=10"
ports:
- containerPort: 8443
protocol: TCP
name: https
{{- if not .ComponentConfig }}
- name: manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 30Mi
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ metadata:
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- "--v=10"
ports:
- containerPort: 8443
protocol: TCP
name: https
- name: manager
args:
Expand Down
4 changes: 2 additions & 2 deletions testdata/project-v3-addon/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 30Mi
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ spec:
- "--v=10"
ports:
- containerPort: 8443
protocol: TCP
name: https
4 changes: 2 additions & 2 deletions testdata/project-v3-config/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 30Mi
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
1 change: 1 addition & 0 deletions testdata/project-v3-config/config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- "--v=10"
ports:
- containerPort: 8443
protocol: TCP
name: https
- name: manager
args:
Expand Down
4 changes: 2 additions & 2 deletions testdata/project-v3-multigroup/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 30Mi
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
1 change: 1 addition & 0 deletions testdata/project-v3-multigroup/config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- "--v=10"
ports:
- containerPort: 8443
protocol: TCP
name: https
- name: manager
args:
Expand Down
4 changes: 2 additions & 2 deletions testdata/project-v3/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 30Mi
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
Expand Down
1 change: 1 addition & 0 deletions testdata/project-v3/config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
1 change: 1 addition & 0 deletions testdata/project-v3/config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager

0 comments on commit 65062ab

Please sign in to comment.