ERROR: Error cleaning up secrets: resource name may not be empty ERROR: Job failed (system failure): prepare environment: setting up build pod: error setting ownerReferences: secrets "runner-fczfho1a-project-525-concurrent-0x4b48" is forbidden: User "system:serviceaccount:gitlab-runner-frontend...
[root@master test]# vim readiness-httpget.yaml apiVersion: v1kind: Podmetadata: name: readiness-httpget namespace: defaultspec: containers: - name: readiness-httpget-container image: nginx imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 readinessProbe: httpGet: port: 80#...
[root@master01 volumes ]#kubectl apply -f emptydir.yaml pod/pod-empty created 查看本机临时目录存在的位置,可用如下方法: #查看pod调度到哪个节点 [root@master01 volumes ]#kubectl get pods -owide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES pod-empty 1/1 Running 0 46s...
{"type": "bandwidth","capabilities": {"bandwidth": true}}]}---# Source: calico/templates/kdd-crds.yamlapiVersion: apiextensions.k8s.io/v1kind: CustomResourceDefinitionmetadata:name: bgpconfigurations.crd.projectcalico.orgspec:group: crd.projectcalico.orgnames:kind: BGPConfigurationlistKind: BGP...
6metadata:7# 第一个属性name的值是nginx,即Pod的名字就叫做Nginx。8name:nginx9# 给Pod贴上了一个标签,标签是app:web,标签是有一定的作用的。10labels:11app:web12# spec是详细,详细里面定义了一个容器。13spec:14# 定义一个容器,可以声明多个容器的。15containers:16# 容器的名称叫做nginx17-name:nginx18...
kubectl label ns app nsname=app 1.1.2 tomcat和nginx的yaml tomcat的deployment和service kind: Deployment # 这里需要注意自己的k8s版本,通过kubectl explain deployment查看自己的k8s版本支持的版本号 # 这里以kubernetes v1.22.2为例 apiVersion: apps/v1 ...
kubectl logs <pod-name> -n <namespace> 1. <pod-name> 是出现 CrashLoopBackOff 状态的 Pod 的名称,<namespace> 是Pod 所属的命名空间。检查日志中是否有任何报错信息,可能可以帮助确定问题所在。 [root@M001 ~]# kubectl logs kube-flannel-ds-77b9l -n kube-flannel Defaulted container "kube-flannel...
fatal: Not a git repository (or any of the parent directories): .git 原因分析:缺少.git本地仓库。 解决方法:初始化git即可。 [root@k8s-master01 k8s-ha-install-master]# git initInitialized empty Git repository in /root/install-k8s-v1.17/k8s-ha-install-master/.git/[root@k8s-master01 k8s-...
nodeName: pengfei-node2 #将pod调度到node2节点上 containers: - name: tomcat-node image: tomcat imagePullPolicy: IfNotPresent ports: - containerPort: 8080 创建pod [root@pengfei-master1 pod]# kubectl apply -f pod_node.yaml 查看pod调度到哪个节点 ...
15.93629253177reset.go:99][reset]Unable to fetch the kubeadm-config ConfigMap from cluster: failed to getnoderegistration: failed to get corresponding node: nodes"k8scloude1"not found[reset]WARNING: Changes made to thishostby'kubeadm init'or'kubeadm join'will be reverted.[reset]Are you sure you...