1 Star 0 Fork 20

ahubbub/wu-framework-parent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
k8s-jenkins.yaml 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
wujiawei 提交于 2021-12-27 11:10 . add jenkins yaml
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: normal-system
name: jenkins
annotations:
k8s.eip.work/workload: jenkins
k8s.eip.work/displayName: jenkins发布部署
k8s.eip.work/service: ClusterIP
k8s.eip.work/ingress: 'false'
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: jenkins
spec:
selector:
matchLabels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: jenkins
replicas: 1
template:
metadata:
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: jenkins
spec:
restartPolicy: Always
initContainers: [ ]
containers:
- name: jenkins
image: 'jenkins/jenkins'
imagePullPolicy: Always
volumeMounts:
- name: jenkins-data
mountPath: /var/jenkins_home
- name: tz
mountPath: /etc/localtime
# resources:
# limits:
# memory: 2Gi
# requests:
# memory: 2Gi
env:
- name: JAVA_OPTS
value: -Xms256m -Xmx256m
volumes:
- name: tz
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
volumeClaimTemplates:
- metadata:
name: jenkins-data
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: nfs1-storage
serviceName: cloud-jenkins
---
apiVersion: v1
kind: Service
metadata:
namespace: normal-system
name: jenkins
annotations:
k8s.eip.work/workload: jenkins
k8s.eip.work/displayName: jenkins发布部署
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: jenkins
spec:
selector:
k8s.eip.work/layer: cloud
k8s.eip.work/name: jenkins
type: NodePort
ports:
- port: 8080
targetPort: 8080
protocol: TCP
name: jenkins
nodePort: 30506
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/gtiger666/wu-framework-parent.git
git@gitee.com:gtiger666/wu-framework-parent.git
gtiger666
wu-framework-parent
wu-framework-parent
master

搜索帮助