Skip to content

Commit

Permalink
Fix provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Mar 12, 2024
1 parent 00b6531 commit 323b493
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RUN make clean && CGO_ENABLED=0 GOOS=linux make

FROM gcr.io/distroless/static:nonroot
COPY --from=builder /go/src/github.com/apache/cloudstack-kubernetes-provider/cloudstack-ccm /app/cloudstack-ccm
ENTRYPOINT [ "/app/cloudstack-ccm", "--cloud-provider", "external-cloudstack" ]
ENTRYPOINT [ "/app/cloudstack-ccm", "--cloud-provider", "cloudstack" ]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Instead, it first obtains the name of the node from Kubernetes, then fetches inf

### Building

At least Go 1.13 is required to build cloudstack-ccm.
At least Go 1.21 is required to build cloudstack-ccm.

To build the controller with correct versioning, some build flags need to be passed.
A Makefile is provided that sets these build flags to automatically derived values.
Expand All @@ -151,7 +151,7 @@ The CCM supports the same cloud-config configuration file format used by [the cs
so you can simply point it to that.

```bash
./cloudstack-ccm --cloud-provider external-cloudstack --cloud-config ~/.cloud-config --master k8s-apiserver
./cloudstack-ccm --cloud-provider cloudstack --cloud-config ~/.cloud-config --master k8s-apiserver
```

Replace k8s-apiserver with the host name of your Kubernetes development clusters's API server.
Expand Down
3 changes: 2 additions & 1 deletion deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ spec:
labels:
k8s-app: cloud-controller-manager
spec:
priorityClassName: system-node-critical
containers:
- name: cloud-controller-manager
image: cloudstack-kubernetes-provider
imagePullPolicy: IfNotPresent
args:
- --leader-elect=true
- --cloud-provider=external-cloudstack
- --cloud-provider=cloudstack
- --cloud-config=/config/cloud-config
resources:
limits:
Expand Down

0 comments on commit 323b493

Please sign in to comment.