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

update deploy file #4409

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controllers/objectstorage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
.PHONY: pre-deploy
pre-deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > deploy/manifests/deploy.yaml
$(KUSTOMIZE) build config/default > deploy/manifests/deploy.yaml.tmpl


.PHONY: undeploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
value: '{{ .OSExternalEndpoint }}'
- name: OSUDetectionCycleSeconds
value: "300"
- name: MinioBucketDetectionCycleSeconds
- name: OSBDetectionCycleSeconds
value: "300"
image: ghcr.io/labring/sealos-objectstorage-controller:latest
imagePullPolicy: Always
Expand All @@ -87,8 +87,8 @@ spec:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
cpu: 5m
memory: 64Mi
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
3 changes: 1 addition & 2 deletions controllers/objectstorage/deploy/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ USER 65532:65532
COPY registry registry
COPY manifests manifests

ENV DEFAULT_NAMESPACE objectstorage-system
ENV OSAdminSecret=""
ENV OSInternalEndpoint=""
ENV OSExternalEndpoint=""

CMD ["kubectl apply -f manifests/deploy.yaml -n $DEFAULT_NAMESPACE"]
CMD ["kubectl apply -f manifests/deploy.yaml"]
Loading
Loading