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
|
set -eux
|
||||||
|
|
||||||
mkdir -p /mnt/nfs/results
|
mkdir -p /mnt/nfs/results
|
||||||
|
chmod 777 /mnt/nfs/results
|
||||||
cp /scripts/*.html /mnt/nfs/results
|
cp /scripts/*.html /mnt/nfs/results
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
|
@ -100,6 +100,8 @@ spec:
|
||||||
gcePersistentDisk:
|
gcePersistentDisk:
|
||||||
pdName: jenkins-home
|
pdName: jenkins-home
|
||||||
fsType: ext4
|
fsType: ext4
|
||||||
|
nodeSelector:
|
||||||
|
cloud.google.com/gke-nodepool: services
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -142,6 +144,32 @@ spec:
|
||||||
serviceName: jenkins-ui
|
serviceName: jenkins-ui
|
||||||
servicePort: 8080
|
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
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -161,11 +189,20 @@ spec:
|
||||||
- containerPort: 22
|
- containerPort: 22
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 31
|
cpu: 30
|
||||||
memory: 100Gi
|
memory: 100Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 31
|
cpu: 30
|
||||||
memory: 100Gi
|
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
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
|
@ -62,6 +62,8 @@ spec:
|
||||||
gcePersistentDisk:
|
gcePersistentDisk:
|
||||||
pdName: results
|
pdName: results
|
||||||
fsType: ext4
|
fsType: ext4
|
||||||
|
nodeSelector:
|
||||||
|
cloud.google.com/gke-nodepool: services
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -79,19 +81,18 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
role: nfs-server
|
role: nfs-server
|
||||||
---
|
---
|
||||||
# apiVersion: v1
|
apiVersion: v1
|
||||||
# kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
# metadata:
|
metadata:
|
||||||
# name: nfs
|
name: nfs
|
||||||
# namespace: results
|
spec:
|
||||||
# spec:
|
capacity:
|
||||||
# capacity:
|
storage: 20Gi
|
||||||
# storage: 20Gi
|
accessModes:
|
||||||
# accessModes:
|
- ReadWriteMany
|
||||||
# - ReadWriteMany
|
nfs:
|
||||||
# nfs:
|
server: nfs-service.results.svc.cluster.local
|
||||||
# server: nfs-service.results.svc.cluster.local
|
path: "/exports"
|
||||||
# path: "/exports"
|
|
||||||
---
|
---
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -104,4 +105,4 @@ spec:
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 20Gi
|
storage: 1Gi
|
|
@ -54,6 +54,8 @@ spec:
|
||||||
- name: nfs-pvc
|
- name: nfs-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: nfs
|
claimName: nfs
|
||||||
|
nodeSelector:
|
||||||
|
cloud.google.com/gke-nodepool: services
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
Loading…
Reference in a new issue