docs: update readme

Update readme,
remove binary file to use container entrypoint
This commit is contained in:
Serge Logvinov
2023-05-07 21:30:16 +03:00
parent fb962181cf
commit 2fb410dce8
4 changed files with 21 additions and 12 deletions

View File

@@ -78,19 +78,18 @@ Create the proxmox credentials
```yaml
# config.yaml
config:
clusters:
- url: https://cluster-api-1.exmple.com:8006/api2/json
insecure: false
token_id: "kubernetes@pve!ccm"
token_secret: "secret"
region: cluster-1
clusters:
- url: https://cluster-api-1.exmple.com:8006/api2/json
insecure: false
token_id: "kubernetes@pve!ccm"
token_secret: "secret"
region: cluster-1
```
Upload it to the kubernetes:
```shell
kubectl -n kube-system create secret proxmox-cloud-controller-manager --from-file=config.yaml
kubectl -n kube-system create secret generic proxmox-cloud-controller-manager --from-file=config.yaml
```
### Method 1: kubectl
@@ -109,6 +108,19 @@ kubectl apply -f https://raw.githubusercontent.com/sergelogvinov/proxmox-cloud-c
### Method 2: helm chart
Create the config file:
```yaml
# proxmox-ccm.yaml
config:
clusters:
- url: https://cluster-api-1.exmple.com:8006/api2/json
insecure: false
token_id: "kubernetes@pve!ccm"
token_secret: "secret"
region: cluster-1
```
Deploy Proxmox CCM
```shell
@@ -116,7 +128,7 @@ helm upgrade -i --namespace=kube-system -f proxmox-ccm.yaml \
proxmox-cloud-controller-manager charts/proxmox-cloud-controller-manager
```
More options can find [here](charts/proxmox-cloud-controller-manager)
More options you can find [here](charts/proxmox-cloud-controller-manager)
## Contributing

View File

@@ -41,7 +41,6 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/proxmox-cloud-controller-manager"]
args:
- --v={{ .Values.logVerbosityLevel }}
- --cloud-provider=proxmox

View File

@@ -148,7 +148,6 @@ spec:
type: RuntimeDefault
image: "ghcr.io/sergelogvinov/proxmox-cloud-controller-manager:v0.0.1"
imagePullPolicy: IfNotPresent
command: ["/proxmox-cloud-controller-manager"]
args:
- --v=4
- --cloud-provider=proxmox

View File

@@ -148,7 +148,6 @@ spec:
type: RuntimeDefault
image: "ghcr.io/sergelogvinov/proxmox-cloud-controller-manager:v0.0.1"
imagePullPolicy: Always
command: ["/proxmox-cloud-controller-manager"]
args:
- --v=4
- --cloud-provider=proxmox