小编Har*_*dio的帖子

Class not found: io.kubernetes.client.openapi.models.V1Service

I get the following error when trying to use the YAML file from my GitRepo to deploy to kube cluster. 控制台错误

Here is the content of my .yaml file:

apiVersion: v1
kind: Service
metadata:
  name: ts-service
spec:
  type: NodePort
  selector:
    app: ts
  ports:
  - protocol: TCP
    port: 8080
    nodePort: 8080

---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ts-deployment
  labels:
    app: ts
spec:
  replicas: 2
  selector:
    matchLabels:
      app: ts
  template:
    metadata:
      labels:
        app: ts
    spec:
      containers:
      - name: ts
        image: $DOCKER_IMAGE_NAME:$BUILD_NUMBER
        ports: …
Run Code Online (Sandbox Code Playgroud)

pipeline jenkins kubernetes

6
推荐指数
1
解决办法
3462
查看次数

标签 统计

jenkins ×1

kubernetes ×1

pipeline ×1