see: helm/helm#3130
helm init --upgrade --service-account tiller
or
kubectl --namespace kube-system create serviceaccount tiller
| // GetSelfMD5 get md5 of current program | |
| func GetSelfMD5() string { | |
| path, e := exec.LookPath(os.Args[0]) | |
| if e != nil { | |
| log.Println(`Self md5sum error: look path fail:`, e) | |
| return "" | |
| } | |
| bs, e := ioutil.ReadFile(path) | |
| if e != nil { | |
| log.Println(`SelfMd5sum error: read file fail:`, e) |
| Still Gathering Statistics... |
| public class RestartApp { | |
| public static void restartApp(Context context) { | |
| Intent intent = new Intent(context, SplashActivity.class); | |
| intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
| context.startActivity(intent); | |
| android.os.Process.killProcess(android.os.Process.myPid()); | |
| } | |
| } |
| public class AppStatus { | |
| public static final int STATUS_RECYCLE =-1; //被回收 | |
| public static final int STATUS_NORMAL=1; //正常 | |
| } |
| public class TimeUtils { | |
| public static long getCurrentTimeWithTimeZone(){ | |
| java.util.Calendar cal = java.util.Calendar.getInstance(); | |
| return cal.getTimeInMillis() + cal.getTimeZone().getRawOffset(); | |
| } | |
| } |
see: helm/helm#3130
helm init --upgrade --service-account tiller
or
kubectl --namespace kube-system create serviceaccount tiller
The annotation should go on the template, since you want it to end up on the pod object:
spec: template: metadata:
Refer to: HTTP/HTTPS proxy
有时我们需要在服务器上配置代理才能访问google的官方镜像,网上找了很多,不是太麻烦就是不清晰。其实很简单,配置一下docker的代理就可以了。
参考上面的链接,然后将地址配成自己使用可以访问google的客户端地址,比如使用shadowsocks的windows电脑,IP为xx.xx.xx.xx,则可以配置成下面的
[Service]
Environment="HTTP_PROXY=http://xx.xx.xx.xx:1080/" "HTTPS_PROXY=https://xx.xx.xx.xx:1080/"
Refer to: Getting Started with Kubeflow
Pre-requires: k8s cluster
mkdir kubeflow
cd kubeflow/
export KUBEFLOW_TAG=v0.3.5
curl https://raw.githubusercontent.com/kubeflow/kubeflow/${KUBEFLOW_TAG}/scripts/download.sh | bash