作者 | 至天 阿里巴巴高级研发工程师 一、Volumes 介绍 Pod Volumes 首先来看一下 Pod Volumes 的使用场景: 场景一:如果 pod 中的某一个容器在运行时异常退出,被 kubelet 重新拉起之后,如何保证之前容器产生的重要数据没有丢失? 场景二:如果同一个 pod ...
分类:
其他好文 时间:
2019-10-16 11:29:19
阅读次数:
75
yum install -y bash-completion source /usr/share/bash-completion/bash_completion source <(kubectl completion bash) echo "source <(kubectl completion b ...
分类:
其他好文 时间:
2019-10-14 14:44:33
阅读次数:
81
1. "获取token" 使用xml组织用例,并运行 2. "发送消息" : 2.1 "发送文本消息" 2.2 优化代码:将重复代码封装为工具类,将请求封装为一个对象,便于重复使用,提高易读性 请求参数类 2.3 "发送图片" 1.发送图片需要从上传临时素材接口获取media_id 2.上传图片需要 ...
分类:
其他好文 时间:
2019-10-13 10:48:56
阅读次数:
186
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Note: If there i ...
2019/10/3 homework_3 - Jupyter Notebooklocalhost:8891/notebooks/Desktop/hw03/homework_3.ipynb 1/12Stock market clusteringData Structures and Algorithm ...
分类:
其他好文 时间:
2019-10-07 19:23:15
阅读次数:
81
原文链接https://vjudge.net/contest/331993#problem/H Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 10 6) co ...
分类:
其他好文 时间:
2019-10-06 20:58:13
阅读次数:
128
Complexity Analysis Time Complexity: O(M + N)O(M+N), where M, NM,N are the lengths of S and T respectively. Space Complexity: O(1)O(1). Time Complexit ...
分类:
其他好文 时间:
2019-10-06 11:18:04
阅读次数:
74
先跑起mysql数据库主从,并有nacos_config数据库。 有nacos-standalone-mysql.yaml 文件 启动命令 :docker-compose -f nacos-standalone-mysql.yaml start 查看日志:nacos.log 此时提示:未设置数据源 ...
分类:
其他好文 时间:
2019-10-06 00:34:02
阅读次数:
2954
名句,感悟,鸡汤 1.一个人总要走陌生的路,看陌生的风景,听陌生的歌,然后在某个不经意的瞬间,你会发现,原本是费尽心机想要忘记的事情真的就那么忘记了。 1. One is always on a strange road, watching strange scenery and listening ...
分类:
其他好文 时间:
2019-10-05 22:09:55
阅读次数:
98
|--要求 自己写一个注解,使用反射的技术读取注解的内容 |--代码内容 1 package com.annotation; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 ...
分类:
编程语言 时间:
2019-10-04 22:58:02
阅读次数:
128