logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

K8S CronJobs创建

fabric8代码创建apiVersion: batch/v1kind: CronJobmetadata:name: hellospec:schedule: "* * * * *"jobTemplate:spec:template:spec:containers:- name: helloimage: busyboximagePullPolicy

#java#k8s#kubernetes
K8S Jobs创建

fabric8代码创建Map<String, String> labels = new LinkedHashMap<>();labels.put(SPIDER_GROUP_ID, spiderGroupId);labels.put(APP_NAME, "job-spider-worker");//TODO 参考buildContainer,构建Deployment的容器参数

#java#k8s#kubernetes
nacos服务com.alibaba.nacos.client.naming - out of date data received, old-t......

问题原因:Nacos集群,时钟不一致,查看本地和Nacos集群时a

#java
解决The connection to the server localhost:8080 was refused - did you specify the right host or port?

1.问题2.原因kubectl命令需要使用kubernetes-admin来运行,需要admin.conf文件(conf文件是通过“ kubeadmin init”命令在主节点/etc/kubernetes 中创建),但是从节点没有conf文件,也没有设置 KUBECONFIG =/root/admin.conf环境变量,所以需要复制conf文件到从节点,并设置环境变量就OK了3.资料https:

#kubernetes
开源GraphQL API图形界面

Official APIsAPIDescriptionGraphiQLDocs/RepoAniListAnime and manga datum, including character, staff, and live airing data.Try it!DocsArtsyfree online platform for collecting and discovering artTry it

#graphql
Fabric8使用和使用遇到的坑

使用pom<dependency><groupId>io.fabric8</groupId><artifactId>kubernetes-client</artifactId><version>4.12.0</version></dependency>配置加载KubernetesClientfabric

#java#spring#后端 +1
Fabric8使用文档

Fabric8 Kubernetes Java Client Cheat SheetThis document contains common usages of different resources using Fabric8 Kubernetes Client.Table of ContentsInitializing Kubernetes ClientKubernetes Client D

解决The connection to the server localhost:8080 was refused - did you specify the right host or port?

1.问题2.原因kubectl命令需要使用kubernetes-admin来运行,需要admin.conf文件(conf文件是通过“ kubeadmin init”命令在主节点/etc/kubernetes 中创建),但是从节点没有conf文件,也没有设置 KUBECONFIG =/root/admin.conf环境变量,所以需要复制conf文件到从节点,并设置环境变量就OK了3.资料https:

#kubernetes
解决The connection to the server localhost:8080 was refused - did you specify the right host or port?

1.问题2.原因kubectl命令需要使用kubernetes-admin来运行,需要admin.conf文件(conf文件是通过“ kubeadmin init”命令在主节点/etc/kubernetes 中创建),但是从节点没有conf文件,也没有设置 KUBECONFIG =/root/admin.conf环境变量,所以需要复制conf文件到从节点,并设置环境变量就OK了3.资料https:

#kubernetes
到底了