build results are published to nfs
This commit is contained in:
parent
cc1b61309a
commit
8b96eaa7b0
4 changed files with 57 additions and 16 deletions
|
@ -2,5 +2,6 @@
|
|||
set -eux
|
||||
|
||||
mkdir -p /mnt/nfs/results
|
||||
chmod 777 /mnt/nfs/results
|
||||
cp /scripts/*.html /mnt/nfs/results
|
||||
nginx -g "daemon off;"
|
|
@ -100,6 +100,8 @@ spec:
|
|||
gcePersistentDisk:
|
||||
pdName: jenkins-home
|
||||
fsType: ext4
|
||||
nodeSelector:
|
||||
cloud.google.com/gke-nodepool: services
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
@ -142,6 +144,32 @@ spec:
|
|||
serviceName: jenkins-ui
|
||||
servicePort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-jenkins
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: nfs-service.results.svc.cluster.local
|
||||
path: "/exports"
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nfs-jenkins
|
||||
namespace: jenkins
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -161,11 +189,20 @@ spec:
|
|||
- containerPort: 22
|
||||
resources:
|
||||
limits:
|
||||
cpu: 31
|
||||
cpu: 30
|
||||
memory: 100Gi
|
||||
requests:
|
||||
cpu: 31
|
||||
cpu: 30
|
||||
memory: 100Gi
|
||||
volumeMounts:
|
||||
- mountPath: /mnt/nfs
|
||||
name: nfs-pvc
|
||||
volumes:
|
||||
- name: nfs-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs-jenkins
|
||||
nodeSelector:
|
||||
cloud.google.com/gke-nodepool: default-pool
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
|
|
@ -62,6 +62,8 @@ spec:
|
|||
gcePersistentDisk:
|
||||
pdName: results
|
||||
fsType: ext4
|
||||
nodeSelector:
|
||||
cloud.google.com/gke-nodepool: services
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -79,19 +81,18 @@ spec:
|
|||
selector:
|
||||
role: nfs-server
|
||||
---
|
||||
# apiVersion: v1
|
||||
# kind: PersistentVolume
|
||||
# metadata:
|
||||
# name: nfs
|
||||
# namespace: results
|
||||
# spec:
|
||||
# capacity:
|
||||
# storage: 20Gi
|
||||
# accessModes:
|
||||
# - ReadWriteMany
|
||||
# nfs:
|
||||
# server: nfs-service.results.svc.cluster.local
|
||||
# path: "/exports"
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: nfs-service.results.svc.cluster.local
|
||||
path: "/exports"
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
|
@ -104,4 +105,4 @@ spec:
|
|||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storage: 1Gi
|
|
@ -54,6 +54,8 @@ spec:
|
|||
- name: nfs-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs
|
||||
nodeSelector:
|
||||
cloud.google.com/gke-nodepool: services
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in a new issue