apiVersion: v1
kind: Pod
metadata:
name: jenkinspodame
labels:
app: myappjenkins
spec:
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
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐