StorageClass 之前我们部署了PV 和 PVC 的使用方法,但是前面的 PV 都是静态的,什么意思?就是我要使用的一个 PVC 的话就必须手动去创建一个 PV,我们也说过这种方式在很大程度上并不能满足我们的需求,比如我们有一个应用需要对存储的并发度要求比较高,而另外一个应用对读写速度又要求 ...
分类:
其他好文 时间:
2020-04-06 13:41:41
阅读次数:
69
第一种方案,使用堆: 1 from heapq import heappush, heappop 2 class Solution: 3 def longestDiverseString(self, a: int, b: int, c: int) -> str: 4 max_heap = [] 5 ...
分类:
其他好文 时间:
2020-04-06 09:41:59
阅读次数:
84
@EnableAutoConfiguration 这个注解的作用是: 从classpath中搜索所有META-INF/spring.factories配置文件然后,将其中org.springframework.boot.autoconfigure.EnableAutoConfiguration ke ...
分类:
其他好文 时间:
2020-04-05 18:43:07
阅读次数:
75
def add(a,b): print(f"ADDING {a}+{b}") return a+b def subtract(a,b): print(f"SUBTRACTING {a}-{b}") return a-b def multiply(a,b): print(f"MULTIPLY {a}* ...
分类:
其他好文 时间:
2020-04-01 16:33:33
阅读次数:
85
LocalSystem Account The LocalSystem account is a predefined local account used by the service control manager. This account is not recognized by the s ...
分类:
其他好文 时间:
2020-03-31 10:37:19
阅读次数:
88
部署 coredns 插件(在master节点上执行) 1. 下载和配置 coredns 1. 启动 coredns 1. 遇到问题 启动coredns后,状态是CrashLoopBackOff 查看coredns对应的pod日志有如下错误 按照提示进入https://coredns.io/plug ...
分类:
Web程序 时间:
2020-03-29 21:16:34
阅读次数:
161
讲 Python 装饰器前,我想先举个例子,虽有点污,但跟装饰器这个话题很贴切。 谈装饰器前,还要先要明白一件事,Python 中的函数和 Java、C++不太一样,Python 中的函数可以像普通变量一样当做参数传递给另外一个函数,例如: 先来看一个简单例子,虽然实际代码可能比这复杂很多: 说到这 ...
分类:
编程语言 时间:
2020-03-27 21:48:42
阅读次数:
93
A Bug's Life Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 52818 Accepted: 16983 Description Background Professor Hopper is researching ...
分类:
其他好文 时间:
2020-03-23 11:16:28
阅读次数:
78
题目: https://leetcode cn.com/problems/minimum window substring/ 给你一个字符串 S、一个字符串 T,请在字符串 S 里面找出:包含 T 所有字母的最小子串。 示例: 输入: S = "ADOBECODEBANC", T = "ABC" 输 ...
分类:
编程语言 时间:
2020-03-22 18:12:26
阅读次数:
81
参考:https://www.jianshu.com/p/fd8d8d51741e https://kubernetes.io/zh/docs/concepts/workloads/controllers/replicaset/ 说到ReplicaSet对象,得先说说ReplicationContr ...
分类:
Web程序 时间:
2020-03-19 17:47:52
阅读次数:
86