k8s
chen_jiangtao
欢迎大家Star >>>>>>https://github.com/chenjiangtao/spring-boot-on-kubernetes<<<<<<
spring boot on kubernetes全家桶:MQ(ActiveMQ,Rabbit MQ), Redis Cluster, DB(Mysql,TiDB). Kong/Nginx ingress controller. PersistentVolumeClaim,PersistentVolume, DefaultStorageClass,hpa……All IN ONE !!!
展开
-
Spring Boot On Kubernetes示例
*********************** 欢迎Star ***********************spring boot on kubernetes的示例,包括:MQ(ActiveMQ,Rabbit MQ), Redis Cluster,DB(Mysql,TiDB),Kong/Nginx ingress controller,PersistentVolumeClaim,PersistentVolume,DefaultStorageClass,hpa……不断更新中…… 欢迎"Star"一.原创 2021-01-20 15:28:52 · 215 阅读 · 0 评论 -
k8s配置admission-plugins(如DefaultStorageClass等)
配置vi /etc/kubernetes/manifests/kube-apiserver.yaml修改enable-admission-plugins项- --enable-admission-plugins=NodeRestriction,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmi原创 2021-01-15 18:30:32 · 1460 阅读 · 0 评论 -
helm安装redis-cluster
安装helm install redis-cluster bitnami/redis-cluster -ndev查看用户密码和测试export REDIS_PASSWORD=$(kubectl get secret --namespace dev redis-cluster -o jsonpath="{.data.redis-password}" | base64 --decode)#测试连接kubectl run --namespace dev redis-cluster-client --原创 2021-01-15 16:49:42 · 2089 阅读 · 0 评论 -
Cenos7安装helm3(及常用命令)
安装wget https://get.helm.sh/helm-v3.0.0-linux-arm64.tar.gztar -zxvf helm-v3.0.0-linux-amd64.tar.gzmv linux-amd64/helm /usr/local/bin/helm添加 repohelm repo add apphub https://apphub.aliyuncs.com --force-update常用repostable https://charts.helm.sh原创 2021-01-15 16:03:23 · 770 阅读 · 0 评论 -
docker pull image 打tag
有的k8s image下不下来,可以通过tag的方式创建可执行文件pull-mitrics.sh如下#!/bin/bashdocker pull registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.6docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/addon-resizer:1.8.11docker tag reg原创 2020-11-05 15:28:53 · 538 阅读 · 0 评论 -
k8s 裸机安装 nginx1.19 ingrass
k8s 裸机安装 nginx1.19 ingrassdeploy.yaml文件如下:apiVersion: v1kind: Namespacemetadata: name: ingress-nginx labels: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/instance: ingress-nginx---# Source: ingress-nginx/templates/controller-原创 2020-11-05 14:59:09 · 1104 阅读 · 2 评论 -
新版Kubernetes问题处理流程
转载 2020-11-04 10:51:59 · 1334 阅读 · 0 评论 -
kubernetes k8s删除namespaces 时一直处在Terminating的问题解决
删除空间kubectl delete ns ops-monit 如果发现一直处在Terminating,执行以下两步即可1.先把proxy开起来,不然8001端口访问不到:kubectl proxy 2.生成json文件kubectl get namespace ops-monit -o json |jq '.spec = {"finalizers":[]}' >temp.json 3.执行删除curl -k -H "Content-Type: application/json"原创 2020-10-26 17:01:06 · 782 阅读 · 0 评论 -
k8s安装、访问kubernetes-dashboard监控
安装部署dashboard(默认不安装)kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml参考官网:Web 界面 (Dashboard)启动kubectl proxy显示:Starting to serve on 127.0.0.1:8001访问kubernetes-dashboard 完整地址如下:http://local原创 2020-10-23 12:01:35 · 1643 阅读 · 0 评论 -
【kubernetes集群系列(一)】Master安装(使用kubeadm)
准备工作1.检查centos发行版如果不是7.6,7.7,7.8直接升级centosyum update -y kernelrpm -q kernelyum update2.添加iptablescat <<EOF | sudo tee /etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1EOFsudo sysctl --s原创 2020-09-24 15:39:32 · 536 阅读 · 0 评论 -
mac下安装kubeneters及zsh下配置自动补全
1. mac下使用brew安装brew install kubectl 2.配置kubectl zsh自动补全The kubectl completion script for Zsh can be generated with the command kubectl completion zsh. Sourcing the completion script in your shell enables kubectl autocompletion.To do so in all your she原创 2020-08-19 10:03:21 · 534 阅读 · 0 评论