Skip to content

Commit

Permalink
fix: clean up manager config
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Sep 6, 2024
1 parent 0889d09 commit 834a308
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 131 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ $(RELEASE_DIR)/%: $(RELEASE_MANIFEST_INPUTS)

.PHONY: release-manifests-metrics-port
release-manifests-metrics-port:
make release-manifests RELEASE_MANIFEST_SOURCE_BASE=config/default-with-metrics-port
make release-manifests RELEASE_MANIFEST_SOURCE_BASE=config/default

.PHONY: release-staging
release-staging: ## Builds and push container images and manifests to the staging bucket.
Expand Down

This file was deleted.

17 changes: 0 additions & 17 deletions config/default-with-metrics-port/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/default-with-metrics-port/auth_proxy_role_binding.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions config/default-with-metrics-port/auth_proxy_service.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions config/default-with-metrics-port/kustomization.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions config/default-with-metrics-port/manager_auth_proxy_patch.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions config/default/manager_config_patch.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions config/manager/controller_manager_config.yaml

This file was deleted.

32 changes: 22 additions & 10 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ spec:
- /manager
args:
- "--leader-elect"
- "--diagnostics-address=127.0.0.1:8080"
- "--insecure-diagnostics=true"
- "--v=${CAPC_LOGLEVEL:=0}"
- "--diagnostics-address=${CAPC_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAPC_INSECURE_DIAGNOSTICS:=false}"
- "--cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}"
- "--cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}"
- "--cloudstackaffinitygroup-concurrency=${CAPC_CLOUDSTACKAFFINITYGROUP_CONCURRENCY:=5}"
- "--cloudstackfailuredomain-concurrency=${CAPC_CLOUDSTACKFAILUREDOMAIN_CONCURRENCY:=5}"
image: controller:latest
name: manager
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsUser: 65532
runAsGroup: 65532
ports:
- containerPort: 9440
name: healthz
protocol: TCP
- containerPort: 8443
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -48,6 +52,14 @@ spec:
port: 9440
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsUser: 65532
runAsGroup: 65532
resources:
limits:
cpu: 100m
Expand Down

0 comments on commit 834a308

Please sign in to comment.