kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
REPLACE_INVALID_WITH = '�' | |
def to_utf8 | |
self.encode('utf-8', invalid: :replace, undef: :replace, replace: REPLACE_INVALID_WITH). | |
chars.map{ |i| i.valid_encoding? ? i : REPLACE_INVALID_WITH }.join | |
end | |
end |