在k8s集群部署jenkins
apiVersion: v1kind: Podmetadata: name: jenkinspodame labels: app: myappjenkinsspec: containers: - name: jenkins-container-name image: 192.168.175.143:5000/android:0.0 ports: - containerPort: 8
apiVersion: v1kind: Podmetadata: name: jenkinspodame labels: app: myappjenkinsspec: containers: - name: jenkins-container-name image: 192.168.175.143:5000/android:0.0 ports: - containerPort: 8083 hostPort: 8083 volumeMounts: - mountPath: /home/ubuntu/jenkins/JENKINS_HOME readOnly: false name: share-data volumes: - name: share-data nfs: server: 192.168.175.143 path: "/home/ubuntu/jenkins/JENKINS_HOME" nodeSelector: slave: "144" dnsPolicy: "None" dnsConfig: nameservers: - 8.8.8.8
更多推荐
所有评论(0)