Jenkins集成Kubernetes 部署springboot项目

文章目录

    • 准备部署的yml文件
    • Harbor私服配置
    • 测试使用效果
    • Jenkins远程调用
    • 参考文章

准备部署的yml文件

apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: test
  name: pipeline
  labels:
    app: pipeline
spec:
  replicas: 2
  selector:
    matchLabels:
      app: pipeline
  template:
    metadata:
      labels:
        app: pipeline
    spec:
      containers:
        - name: pipeline
          image: 192.168.56.112:80/repository/pipeline-test:1.0.0
          imagePullPolicy: Always
          ports:
            - containerPort: 8080
---
<

你可能感兴趣的:(spring,boot,jenkins,docker)