blog-comments's People
blog-comments's Issues
2. 安装 Helm | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/2-install-helm/
下载科学上网下载适用于服务器的二进制压缩包: https://kubernetes-helm.storage.googleapis.com/helm-v2.13.1-linux-amd64.tar.gz 传输至服务器上: 1$ scp helm-v2.13.1-linux-amd64.tar.gz t1:/opt/kubernetes 解压并安装123$ tar zxvf helm-v2.1
0. Kubernetes 基础 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/0-introduce/
1.1 概念与术语PodPod 是 Kubernetes 的最小调度单元,同一 Pod 中的容器共享网络名称空间和存储资源,这些容器可以经由本地回环口 lo 直接通信(127.0.0.1 或 localhost),但彼此之间又在 Mount、User 及 PID 等 Namespace 上保持了隔离。通常只应包含一个主容器以及必要的辅助型容器(sidecar)。 Label资源标签是将资源进行
[翻译]Go Data Structures | MrHeaaaavy
https://mrheaaaavy.com/go/godata/
原文地址:Go Data Structures 原作者:Russ Cox 原文发表于:2009-11-24 所有图片均来源于原文 译者注:由于本文年代久远,部分内容可能已经过时,请读者自行甄别。译者在能力范围之内,会在译文中进行标注。 在向新程序员解释 Go 语言时,我发现解释 Go 的值在内存中的样子非常有用,这有助于他们建立正确的直觉来判断哪些操作开销大,哪些操作开销小。本文
7. 部署 Nginx Ingress | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/7-deploy-nginx-ingress/
修改 api-server 配置默认情况下 Kubernetes 的 NodePort 分配范围在 30000-32767 之间,这里修改为 1-62375: 1$ sudo vim /etc/kubernetes/manifest/kube-apiserver.yaml 修改: 1- --service-node-port-range=1-65535 必要配置部署默认 HTTP 后端:
Java 字节码结构 | MrHeaaaavy
https://mrheaaaavy.com/jvm/bytecode-structure/
字节码结构 区域 大小(字节) 说明 魔数 4 固定为 0xCAFEBABE 副版本号 2 Minor Version 主版本号 2 Majar Version 常量池计数器 2 常量池大小 常量池数据区 字面量和符号引用 访问标志 2 表示访问权限 类索引 2 确定当前类的全限定名 超类索引 2 确定当前类的超类全限定名 接口计数器 2 接口数量
JVM规范——指令集概述 | MrHeaaaavy
https://mrheaaaavy.com/jvm/jvm8-instruction-set-summary/
一个 JVM 指令由两部分组成,第一部分是一个字节(one-byte)的操作码,第二部分是 0 个或多个提供参数或数据的操作数,许多指令都只有第一部分。
Stringer | MrHeaaaavy
https://mrheaaaavy.com/go/stringer/
需求在 Go 中,我们一般用自定义类型来实现枚举的功能,如下代码所示: 12345678// sport.gotype Sport intconst ( Football Sport = 1 // 足球 Basketball Sport = 2 // 篮球 TableTennis Sport = 3 // 乒乓球) 而在实际的使用过程中,我们还需要枚举值能够自解释,比如获取该枚举值定义的实际意义
[翻译]Go Slices: usage and internals | MrHeaaaavy
https://mrheaaaavy.com/go/slice/
原文地址:slices-intro 原作者:Andrew Gerrand 原文发表于:2011-01-5 所有图片均来源于原文 介绍Go 语言的切片类型提供了方便且高效的方式来操作 类型化的数据序列。切片类型除了一些特殊的属性外,与其他程序语言的数组非常相似。本文将研究切片是什么以及如何使用它。 数组切片类型是建立在数组之上的抽象概念,所以在深入切片之前我们首先需要了解数组。 数组
JVM规范 —— 代码编译 | MrHeaaaavy
https://mrheaaaavy.com/jvm/java-compilation/
“编译器”一词,有时也指将 JVM 指令集翻译为特定 CPU 架构指令集的工具,比如 JIT(just-in-time)即时编译器。但本文档讨论的范围仅包括将 Java 源代码编译为 JVM 指令。
4. 安装 MySQL | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/4-install-mysql/
安装1$ helm install --name mysql-57 --set mysqlRootPassword=root,persistence.storageClass=rook-ceph-block stable/mysql --debug 注意这里的 persistence.storageClass 要与 StorageClass 的 name 一致。 查看 Service1234
3. 安装 Ceph 存储集群 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/3-install-ceph/
安装 Ceph Operator执行 1kubectl apply -f https://raw.githubusercontent.com/rook/rook/master/cluster/examples/kubernetes/ceph/operator.yaml 查看 Operator
8. 部署 Java 后端应用 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/8-deploy-backend-app/
约定 Kubernetes 命名空间:platform-test 配置文件名称:platform-back-config 准备 ConfigMap首先需要将后端 Spring 应用的配置文件写入 Kubernetes ConfigMap: 1kubectl -n platform-test create configmap platform-back-config --from-file a
[翻译]Go Data Structures: Interfaces | MrHeaaaavy
https://mrheaaaavy.com/go/interface/
原文地址:Go Data Structures: Interfaces 原作者:Russ Cox 原文发表于:2009-12-01 所有图片均来源于原文 译者注: 由于本文年代久远,部分内容可能已经过时,请读者自行甄别; 译者在能力范围之内,会在译文中进行标注过时内容以及新的实现; 文中部分链接已失效,译者已尽力恢复。 从语言设计的角度来看,对于我个人而言,Go 语言的接口是
Java 内存模型基础 | MrHeaaaavy
https://mrheaaaavy.com/jvm/jmm-basic/
在多核的计算机系统中,处理器通常拥有一个或多个处理器高速缓存(如 L1、L2 和 L3 等),用来提高数据的读取速度(因为 L1、L2 和 L3 等高速缓存从物理级别更接近处理器)和减少共享数据在总线上的传输(因为大部分的内存操作基本都能在 CPU 的本地高速缓存完成)。高速缓存可以极大地提高性能,但是也带来了新的挑战。例如:两个处理器同时访问一个内存地址,在何种条件下他们都能看到内存中同样的值?
11. 配置集群状态监控 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/11-promethues/
准备接下来的部署中,有一个镜像位于谷歌服务器,所以需要手动拉取和打标签: 12$ docker pull gcr.azk8s.cn/google_containers/addon-resizer-amd64:2.1$ docker tag gcr.azk8s.cn/google_containers/addon-resizer-amd64:2.1 gcr.io/google-container
HashMap | MrHeaaaavy
https://mrheaaaavy.com/java/hashmap/
基本描述HashMap 是一个基于哈希表(Hash table)的 Map 接口的实现,它实现了 Map 接口的所有操作,并允许空值和空键。 它除了非线程安全和允许空值空键外,大致和 Hashtable 是一致的;并且它也不能保证其中元素的顺序,实际上,随着时间的推移,其中元素的顺序也会发生改变。 在元素没有冲突、所有元素都能够均匀地分散到其中的各个 bucket 的情况下,HashMap 基本的
JVM规范——Java 虚拟机结构 | MrHeaaaavy
https://mrheaaaavy.com/jvm/jvm8-specification/
本篇翻译自 Oracle 官方文档 —— JVM 规范第二章 ,并包含删减及译者解读。如果不打算深入了解,那么仅需要阅读总结好的 TLDR 部分即可。
9. 部署前端应用 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/9-deploy-frontend-app/
约定Kubernetes 命名空间:platform-test 准备 gitlab ci 文件1234567891011121314151617181920212223242526272829303132#.gitlab-ci.ymlcache: paths: - dist/ - node_modules/stages: - staging - productionstagi
5. 安装 Consul | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/5-install-consul/
准备配置文件1$ curl -o consul.yml https://raw.githubusercontent.com/helm/charts/master/stable/consul/values.yaml 修改配置如下: 12ImageTag: "1.4.4"StorageClass: "rook-ceph-block" 安装:1$ helm install --name cons
10. 配置 DNS | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/10-configure-dns/
安装使用 Dnsmasq 程序来实现内部域名解析 12345# 安装$ sudo yum install -y dnsmasq# 启动$ sudo systemctl --now enable dnsmasq 配置在 /etc/dnsmasq.conf 文件中增加所需要解析的域名 123# /etc/dnsmasq.confaddress=/platform.tcce.local/10.17
6. 部署 Harbor | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/6-deploy-harbor/
准备配置文件12$ git clone https://github.com/goharbor/harbor-helm$ cd harbor-helm 修改 values.yaml 如下: 123456789101112131415161718192021222324# 仅展示有修改的部分expose: type: ingress ingress: host: harbor.tcc
HotSpot 虚拟机垃圾回收调优指南 | MrHeaaaavy
https://mrheaaaavy.com/java/hotspot-virtual-machine-garbage-collection-tuning-guide/
原文地址:Oracle Java Doc 对应版本:Java 11 原文发表于:2018-09 垃圾回收调优简介从桌面上的小程序到大型服务器上的 Web 应用,多种多样的程序都使用 Java 进行开发。为了支持这些部署形态和运行模式,Java HotSpot 虚拟机有针对性地为不同的场景提供了不同的垃圾回收器。Java 根据应用程序运行的计算类型来自动选择最恰当的垃圾回收器,然而这个
自动内存管理 | MrHeaaaavy
https://mrheaaaavy.com/gc/automatic-memory-management/
自动内存管理(Automatic Memory Management)是很多现代程序语言提供的功能之一。自动内存管理通常包含两个部分:一是分配,而是回收;之所以称之为自动,是因为在这些语言中无需程序员手动显式地申请或释放内存。 比如在 C 语言中,你必须保证 malloc 和 free 是成对出现的,而由于这一切都是手动进行,那么就有可能出现问题。比如申请了内存却忘记了释放,会造成内存泄漏,而且会
12. 安装 NSQ | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/12-install-nsq/
准备配置文件{hl_lines1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939
1. 使用 Kubeadm 安装 Kubernetes 集群 | MrHeaaaavy
https://mrheaaaavy.com/kubernetes-tutorials/1-install-by-kubeadm/
服务器准备系统版本:CentOS 7 Hostname IP 角色 test1.tcce.local 10.172.23.166 Master test2.tcce.local 10.172.23.167 Worker test3.tcce.local 10.172.23.168 Worker 系统配置设置主机名分别配置每台服务器: 12# test1.tcce.loc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.