K8S安装部署开放服务
#!/bin/bash modprobe -- ip_vs modprobe -- ip_vs_rr modprobe -- ip_vs_wrr modprobe -- ip_vs_sh modprobe -- nf_conntrack modprobe -- ip_tables modprobe -- ip_set modprobe -- xt_set modprobe kubectl create secret tls iot-tls --cert=tls.crt --key=tls.key K. 安装 helm3 wget https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz tar xvf helm-v3.3.4-linux-amd64.tar.gz cp linux-amd64/helm /usr/local/bin/ Namespace }} labels: app.kubernetes.io/name: {{ include "openservice.name" . }} helm.sh/chart: {{ include "openservice.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }}0 码力 | 54 页 | 1.23 MB | 1 年前3Jib Kubecon 2018 Talk
from("busybox") .addLayer(Arrays.asList(Paths.get( "helloworld.sh" )), AbsoluteUnixPath.get( "/")) .setEntrypoint( "/bin/sh", "/helloworld.sh" ) .containerize( Containerizer.to(DockerDaemonImage from("busybox") .addLayer(Arrays.asList(Paths.get("helloworld.sh")), AbsoluteUnixPath.get("/")) .setEntrypoint( "/bin/sh", "/helloworld.sh" ) .containerize( Containerizer.to(DockerDaemonImage from("busybox") .addLayer(Arrays.asList(Paths.get( "helloworld.sh" )), AbsoluteUnixPath.get( "/")) .setEntrypoint("/bin/sh", "/helloworld.sh") .containerize( Containerizer.to(DockerDaemonImage0 码力 | 90 页 | 2.84 MB | 1 年前3k8s操作手册 2.3
cat > /etc/modules-load.d/k8s-ipvs.conf <sh ip_vs_rr ip_vs_wrr nf_conntrack_ipv4 EOF # modprobe ip_vs # modprobe ip_vs_sh # modprobe ip_vs_rr # modprobe ip_vs_wrr # modprobe nf_conntrack_ipv4 yaml文件到 其他地方,这时kubelet会自动删除本结点上的etcd pod,再把此文件移回去, 又会重新生成etcd pod # kubectl exec -it etcd-k8s-master3 sh -n kube-system #进入etcd容器执行以 下命令 # 查看集群成员 etcdctl --endpoints=h�ps://127.0.0.1:2379 \ rr(round-robin) wrr(加权轮询) lc(least connec�on) wlc(加权最少连接) dh(des�na�on hashing) lblc 基于局部性最少连接 sh(source hashing) lblcr 带复制的基于局部性最少连 接 sed ( shortest expected delay) nq(never queue) 默认使用rr ★k8s的service类型: 0 码力 | 126 页 | 4.33 MB | 1 年前3运维上海2017-Kubernetes 在大规模场景下的service性能优化实战 - 杜军
LB�LVS������� • ��netfilter, hash table • ��TCP, UDP�SCTP���IPV4�IPV6 • ���������� Ø rr, wrr, lc, wlc, sh, dh, lblc… • ������ Ø persistent connection���� IPVS��� IPVS������ • ����LB��: Direct Routing(DR) ���� - IPVS service������������ ü ������� - nf_conntrack_ipv4, ip_vs, ip_vs_rr, ip_vs_wrr, ipvs_sh ü # echo 1 > /proc/sys/net/ipv4/vs/conntrack ü �����port range0 码力 | 38 页 | 3.39 MB | 1 年前3Kubernetes Use it, Contribute to it, and Enjoy it!
com/kubernetes/minikube https://github.com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh related links https://kubernetes.io/docs/setup/independent/install-kubeadm https://github.com/k0 码力 | 45 页 | 3.11 MB | 1 年前3破解 Kubernetes 应用开发困局-王炜
的进程替换成源码运行,如果进程停 止,容器将 Crash,怎么阻止? 解决问题: 1、从本地同步到容器 2、将业务容器的镜像替换为 Runtime 镜像 3、替换 PID=1 进程为阻塞进程: /bin/sh -c tail -f /dev/null 1 6 从 Dockerfile 说起 开发和调试演示 04 一键 Run、一键 Debug 1 8 使用 Nocalhost 开发 Zadig0 码力 | 20 页 | 3.58 MB | 9 月前3Apache OpenWhisk + Kubernetes: A Perfect Match for Your Serverless Platform
install, and upgrade even the most complex Kubernetes application. • Official community: https://helm.sh/ Core concepts in Helm Helm installs charts into Kubernetes, creating a new release for each installation0 码力 | 24 页 | 3.53 MB | 1 年前3Serverless Kubernetes - KubeCon
• 高弹性 • 按需付费 A short history of Serverless Container 产品名称 厂商 发布日期 Kubernetes API支持 Hyper.sh 2016.11 Y(2018.5支持) Azure Container Instances 2017.7 N AWS Fargate 2017.11 计划2018年支持 Huawei0 码力 | 16 页 | 4.25 MB | 1 年前3Автоматизация управления ClickHouse-кластерами в Kubernetes
cluster Install Zookeeper: manifests/zookeeper/quick-start-persistent-volume/zookeeper-1-node-create.sh Replication apiVersion: "clickhouse.altinity.com/v1" kind: "ClickHouseInstallation" metadata: name:0 码力 | 44 页 | 2.24 MB | 1 年前3QCon北京2017/智能化运维/Self Hosted Infrastructure:以自动运维 Kubernetes 为例
Installation - etcd - SSH - Install etcd - Config them correctly - Start them Installation kops, kubeup.sh, kube-AWS,... AWS, GCP API node1 node2 node3 Upgrade - SSH - Upgrade container runtime - Upgrade0 码力 | 73 页 | 1.58 MB | 1 年前3
共 13 条
- 1
- 2