Patch/vk chart namespace (#235)
* Fix the dependency issue * Changed the charts to accept a namespace variable * Bumped and regenerated chart. Updated createCert for MacOS * Moving generated charts up in the folder structure
This commit is contained in:
committed by
Robbie Zhang
parent
e1fa5b03af
commit
61753060c6
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,6 +5,9 @@
|
||||
*.dylib
|
||||
bin/
|
||||
|
||||
# Certificates
|
||||
*.pem
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
||||
|
||||
BIN
charts/virtual-kubelet-0.1.2.tgz
Normal file
BIN
charts/virtual-kubelet-0.1.2.tgz
Normal file
Binary file not shown.
BIN
charts/virtual-kubelet-for-aks-0.1.4.tgz
Normal file
BIN
charts/virtual-kubelet-for-aks-0.1.4.tgz
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
name: virtual-kubelet-for-aks
|
||||
version: 0.1.3
|
||||
version: 0.1.4
|
||||
description: a Helm chart to install virtual kubelet in an AKS or ACS cluster.
|
||||
sources:
|
||||
- https://github.com/virtual-kubelet/virtual-kubelet
|
||||
|
||||
@@ -47,7 +47,7 @@ spec:
|
||||
- name: acs-credential
|
||||
mountPath: "/etc/acs/azure.json"
|
||||
command: ["virtual-kubelet"]
|
||||
args: ["--provider", "azure", "--namespace", "default", "--nodename", {{ default "virtual-kubelet" .Values.env.nodeName | quote }} , "--os", {{ default "Linux" .Values.env.nodeOsType | quote }}, "--taint", {{ default "azure.com/aci" .Values.env.nodeTaint | quote }}]
|
||||
args: ["--provider", "azure", "--namespace", {{ default "" .Values.env.monitoredNamespace | quote }}, "--nodename", {{ default "virtual-kubelet" .Values.env.nodeName | quote }} , "--os", {{ default "Linux" .Values.env.nodeOsType | quote }}, "--taint", {{ default "azure.com/aci" .Values.env.nodeTaint | quote }}]
|
||||
volumes:
|
||||
- name: credentials
|
||||
secret:
|
||||
|
||||
@@ -14,3 +14,4 @@ env:
|
||||
nodeOsType:
|
||||
apiserverCert:
|
||||
apiserverKey:
|
||||
monitoredNamespace:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: virtual-kubelet
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
description: a Helm chart to install virtual kubelet inside a Kubernetes cluster.
|
||||
sources:
|
||||
- https://github.com/virtual-kubelet/virtual-kubelet
|
||||
|
||||
@@ -34,7 +34,7 @@ spec:
|
||||
- name: credentials
|
||||
mountPath: "/etc/virtual-kubelet"
|
||||
command: ["virtual-kubelet"]
|
||||
args: ["--provider", "azure", "--namespace", "default", "--nodename", {{ default "virtual-kubelet" .Values.env.nodeName | quote }} , "--os", {{ default "Linux" .Values.env.nodeOsType | quote }}, "--taint", {{ default "azure.com/aci" .Values.env.nodeTaint | quote }}]
|
||||
args: ["--provider", "azure", "--namespace", {{ default "" .Values.env.monitoredNamespace | quote }}, "--nodename", {{ default "virtual-kubelet" .Values.env.nodeName | quote }} , "--os", {{ default "Linux" .Values.env.nodeOsType | quote }}, "--taint", {{ default "azure.com/aci" .Values.env.nodeTaint | quote }}]
|
||||
volumes:
|
||||
- name: credentials
|
||||
secret:
|
||||
|
||||
@@ -14,6 +14,7 @@ env:
|
||||
nodeOsType:
|
||||
apiserverCert:
|
||||
apiserverKey:
|
||||
monitoredNamespace:
|
||||
|
||||
# Install Default RBAC roles and bindings
|
||||
rbac:
|
||||
|
||||
9
scripts/createCertAndKey.sh
Normal file → Executable file
9
scripts/createCertAndKey.sh
Normal file → Executable file
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Generate cert and key for chart
|
||||
openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -subj "/C=US/ST=CA/L=virtualkubelet/O=virtualkubelet/OU=virtualkubelet/CN=virtualkubelet"
|
||||
cert=$(base64 cert.pem -w0)
|
||||
key=$(base64 key.pem -w0)
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
cert=$(base64 cert.pem)
|
||||
key=$(base64 key.pem)
|
||||
else
|
||||
cert=$(base64 cert.pem -w0)
|
||||
key=$(base64 key.pem -w0)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user