记一次kubernetes Evicted的处理
事情这样的:kubernetes1.21.3集群。容器运行时containerd。除了K8s-node-06节点。保留这个docker节点有很多原因。比如当时没有想好用什么打包镜像。默认让jenkins打包镜像。还有就是我的gitlab 10.8.7版本contarinerd运行时下无法启动。就保留了这个节点运行gitlab pod。当然了也把这个节点设置为了不可调度。不相其他...
2022-03-02
AWS CLI 命令行直接操作AWS控制台
如同git和docker,awscli分为入口命令和功能命令,入口命令为aws,功能命令各自对应一项aws服务。如aws s3就是针对S3存储的操作。
<JVM规范>阅读-instance of
objectref是线程栈顶部弹出的类型的引用,无符号数indexbyte1和indexbyte2共同构建成一个索引(indexbyte1<<8|indexbyte2)指向运行时常量池中的类.如果objectref为null,result=0;如果objectref为指定类(resolved class),数组,接口的实例,则result=1否则result=0;
2017-06-27
Kubernetes 副本机制篇
在上文Kubernetes Pod操作篇介绍了kubernetes的核心组件Pod,本文继续介绍kubernetes的副本机制,正是因为副本机制你的部署能自动保待运行,并且保持健康,无须任何手动干预。
2019-12-25
使用 k3sup 一分钟快速搭建 K3s 集群
在平时的工作中,为了方便在纯净的环境中进行测试,我经常需要在本地或者公有云环境中频繁地搭建和销毁集群。有时是在 我的 HomeLab 环境中,虽然 CPU 不强但胜在内存够大;后来有了微软 MVP 赠送的 Azure 额度之后,我也会经常在 Azure 虚拟机 中搭建,因为没有拉取镜像的网络问题。
2023-10-27
动态规划之正则表达
正则表达式是一个非常强力的工具,本文就来具体看一看正则表达式的底层原理是什么。力扣第 10 题「正则表达式匹配」就要求我们实现一个简单的正则匹配算法,包括「.」通配符和「*」通配符。
2020-11-13
聊聊gorm的logger
序本文主要研究一下gorm的loggerloggergorm.io/gorm@v1.20.10/logger/logger.go {代码...} logger内嵌了Writer、Config、定义了info、warn、err、trace、traceErr、traceWarn属性logger.Newgorm.io/gorm@v1.20.10/logger/logger.go {代码...} logger.New根据config来创建loggerInterface {代码...} logger.Interface接口...
2021-01-10
外键与死锁
A table lock, also called a TM lock, is acquired by a transaction when a table is modified by an INSERT, UPDATE, DELETE, MERGE, SELECT with the FOR UPDATE clause, or LOCK TABLE statement. DML operations require table locks to reserve DML access to the table on behalf of a transaction and to preve...
2021-02-07
js操作时间(持续更新)
1、时间格式化(Date原型上添加) {代码...} 2、获取两个日期之间的日期 {代码...} 3、计算7(n)天前 {代码...}
2018-01-08
[Leetcode]Longest Palindrome
Longest PalindromeGiven a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
2016-11-21
第28期:索引设计(使用全文索引)
上一篇介绍了全文索引的基本原理,这篇来讲讲如何更好的使用全文索引。全文索引的检索和普通检索的语法不同,普通检索一般类似下面SQL: {代码...} 过滤条件在WHERE子句后面,以一定的方式来拼接SQL,全文索引的使用有特定的语法: {代码...} 本篇采用的示例表如下,表记录数10W行: {代码...} 现在给表fx字段s1建立全文...
2021-05-26
python每日进阶--python实现九九乘法表
这篇文章用来记录使用python实现一个九九乘法表 {代码...}
【Flutter 1-9】Flutter教程Dart语言——函数和匿名函数
Dart 同样也是一种面向对象的语音。所以即便函数也是一个对象。类型为 Function,这意味着函数可做作为变量,也也可以作为函数的参数。
2020-12-10
Letter Combinations of a Phone Number(17)
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf","cd", "ce", "cf"]. Note: Although the above answer ...
2016-05-25
[leetcode]132. Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 since the palindrome partitioning ["aa","b"] could be produced using 1 cut.
LeetCode 536. Construct Binary Tree from String 从带括号字符串构建二叉树
You need to construct a binary tree from a string consisting of parenthesis and integers.
2018-10-26
慕课网_《模式的秘密之单例模式》学习总结
时间:2017年08月27日星期日说明:本文部分内容均来自慕课网。@慕课网:[链接]教学源码:[链接]学习源码:[链接] 第一章:单例模式简介 1-1 简介 单例模式 {代码...} 什么是设计模式 {代码...} 目的 {代码...} 单例设计模式 {代码...} 第二章:单例模式实现 2-1 饿汉式实现 代码编写 1.编写Singleton类 {代码...} 2.编写...