Skip to content

Instantly share code, notes, and snippets.

@mysticrenji
Created October 28, 2020 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mysticrenji/d891fe3df6509a0b9eb6b37d9bd0659f to your computer and use it in GitHub Desktop.
Save mysticrenji/d891fe3df6509a0b9eb6b37d9bd0659f to your computer and use it in GitHub Desktop.
Helm Install for IoT Edge Resources
#Install Helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
kubectl create serviceaccount tiller --namespace kube-system
kubectl create -f tiller-clusterrolebinding.yaml
#tiller-clusterrolebinding.yaml - Save file and create tiller
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: tiller-clusterrolebinding
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: ""
#Helm repo for IoT Edge
helm install --repo https://edgek8s.blob.core.windows.net/staging \
edge-crd \
edge-kubernetes-crd
# Create namespace for Edge Device
kubectl create namespace raspi-master
# Install and run modules on Devices
helm install --repo https://edgek8s.blob.core.windows.net/staging \
raspi-master \
edge-kubernetes \
--namespace raspi-master \
--set "provisioning.deviceConnectionString=<IoT Edge Connection String>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment