k8s之java-deployment
kind: Deployment apiVersion: apps/v1 metadata: name: pejava-deployment namespace: default labels: app: pejava spec: replicas: 1 selector: matchLabels: app: pejava template: metadata: labels: app: pejava spec: volumes: - name: git-storage persistentVolumeClaim: claimName: pejava-pvc containers: - name: pejava image: 'pejava:20210611' ports: - c...
k8s之mongo-deployment
kind: Deployment apiVersion: apps/v1 metadata: name: mongo-deployment namespace: default labels: app: mongo spec: replicas: 1 selector: matchLabels: app: mongo template: metadata: labels: app: mongo spec: containers: - name: mongo image: mongo ports: - containerPort: 27017 protocol: TCP
pe-deployment
kind: Deployment apiVersion: apps/v1 metadata: name: pe-deployment namespace: default labels: app: pe spec: replicas: 1 selector: matchLabels: app: pe template: metadata: labels: app: pe spec: containers: - name: pe image: 'pe:20210531' ports: - containerPort: 3001 protocol: TCP
k8s查看pod实时日志
kubectl get pods|grep mut | awk '{print $1}'| xargs kubectl logs -f
Kubernetes 1.8.6 集群部署–部署Web UI界面
安装DNS插件 在 Master节点 上进行安装操作 下载安装文件 <span class="hljs-meta">#</span><span class="bash"> <span class="hljs-built_in">cd</span></span> <span class="hljs-meta">#</span><span class="bash"> wget https://github.com/kubernetes/kubernetes/releases/download/v1.8.6/kubernetes.tar.gz</span> <span class="hljs-meta">#</span><span cla...
[转]Kubernetes安装方法及使用教程
目录 前言: 1、Kubernetes介绍 2、k8s的架构 架构图 架构是master/node的主从架构 Pod分为两类(我自己给分的类): Pod的常用控制器: Service: 集群的附件AddOns: k8s集群的三种网络: k8s集群的三种通信: k8s的两种常见部署方案 总结一下使用kubeadm安装k8s: 3、k8s的安装部署 3.1、传统的部署方式:(本文不使用这种,往下看) 3.2、使用kubeadm方式安装k8s(推荐) 3.2.1配置yum仓库 3.2.2 安装并启动相关组件 前言: Devops: DevOps(Development和Operations的组合词)是一组过程、方法与系统的统称...