![](https://img-blog.csdnimg.cn/2ea0fa69fa21425da4c7691050bdf542.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
k8s
K8S学习专栏
怎么就重名了
这个作者很懒,什么都没留下…
展开
-
ArgoCD简单介绍
argocd简单介绍原创 2023-02-26 11:48:39 · 173 阅读 · 1 评论 -
K8s Deployment ymal文件详解
from :https://www.cnblogs.com/ling-yu-amen/p/10956470.htmlapiVersion: apps/v1 #接口版本kind: Deployment #接口类型metadata: name: cango-demo #Deployment名称 namespace: cango-prd #命名空间 labels: app: cango-demo原创 2021-11-28 22:49:25 · 438 阅读 · 0 评论 -
openssl把证书变成pkcs12格式
openssl把证书变成pkcs12格式需求只有kubeconfig,java如何使用它把变成证书呢?变成证书又怎么调用k8s的api呢?1. 变成证书kubeconfig_to_cert.sh# cat kubeconfig_to_cert.shexport clientcert=$(grep client-cert ~/.kube/config |cut -d" " -f 6)echo $clientcertexport clientkey=$(grep client-key-data原创 2021-07-18 20:23:27 · 1098 阅读 · 0 评论 -
排查Pod卡在Terminating状态
排查Pod卡在Terminating状态参考:终极好文章 https://www.jianshu.com/p/817f11912253https://www.cnblogs.com/rongfengliang/p/10867909.htmlhttps://github.com/kubernetes/kubernetes/issues/65766https://www.cnblogs.com/peteremperor/p/12197989.html操作kubectl delete pod m原创 2021-06-24 18:34:08 · 360 阅读 · 0 评论 -
kubeconfig配置多集群并切换集群 脚本示例
echo "参考bloghttps://blog.csdn.net/u013360850/article/details/83315188https://www.cnblogs.com/tigergaonotes/p/14702276.htmlhttps://www.cnblogs.com/zhaobowen/p/13963343.html"echo "controlplane $ kubectl config get-contextsCURRENT NAME原创 2021-05-28 00:56:32 · 1571 阅读 · 0 评论 -
k8s operator的理解
来自https://www.katacoda.com/openshift/courses/operatorframework/etcd-operatorcat > etcd-operator-crd.yaml<<EOF# 扩展资源的组apiVersion: apiextensions.k8s.io/v1# CRDkind: CustomResourceDefinitionmetadata:# 这个CRD的名字,好像没啥用 name: etcdclusters.etcd.d原创 2021-03-31 00:23:24 · 868 阅读 · 0 评论 -
k8s创建静态pod
k8s创建静态pod静态Pod是由kubelet进行管理的仅存在于特定Node上的Pod。它们不能通过API Server进行管理,无法与ReplicationController、Deployment或者DaemonSet进行关联,并且kubelet无法对它们进行健康检查。静态Pod总是由kubelet创建的,并且总在kubelet所在的Node上运行。配置文件方式增加kubelet的配置文件–pod-manifest-path=/etc/kubelet.d/[root@tom ~]# cat原创 2021-02-08 13:03:14 · 395 阅读 · 1 评论 -
k8s volume
k8s volumevolume: https://kubernetes.io/docs/concepts/storage/volumes/#hostpathapiVersion: v1kind: Podmetadata: name: test-webserverspec: containers: - name: test-webserver image: k8s.gcr.io/test-webserver:latest volumeMounts: - moun原创 2020-12-24 13:47:13 · 213 阅读 · 0 评论 -
安装postgres和sonarqube
安装postgres和sonarqube创建postgresdocker pull postgres:11.4mkdir -p /data/sonar/postgresqlpostgres.ymlapiVersion: apps/v1kind: Deploymentmetadata: name: postgres-sonar labels: app: postgres-sonarspec: replicas: 1 selector: matchLabels:原创 2020-12-22 19:35:48 · 1162 阅读 · 0 评论