forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update playbook for dealing with NFS out of space and use kustomize. (k…
…ubeflow#583) * Instead of using ksonnet to manage the PV and PVC for NFS switch to using kustomize and update the playbook. Fix kubeflow#582
- Loading branch information
1 parent
8bc32fd
commit 7464a22
Showing
7 changed files
with
109 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: kubeflow-test-infra | ||
resources: | ||
- pvc.yaml | ||
- statefulset.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
name: nfs-external | ||
namespace: kubeflow-test-infra | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
dataSource: null | ||
resources: | ||
requests: | ||
storage: 500Mi | ||
storageClassName: gcfs-storage | ||
volumeMode: Filesystem | ||
volumeName: gcfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: "v1" | ||
kind: "PersistentVolume" | ||
metadata: | ||
name: gcfs | ||
spec: | ||
accessModes: | ||
- "ReadWriteMany" | ||
capacity: | ||
storage: "5Gi" | ||
nfs: | ||
path: "/kubeflow" | ||
server: "10.86.7.242" | ||
persistentVolumeReclaimPolicy: "Retain" | ||
storageClassName: gcfs-storage | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: nfs-external | ||
annotations: | ||
"volume.beta.kubernetes.io/storage-class": gcfs-storage | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
dataSource: null | ||
resources: | ||
requests: | ||
storage: 500Mi | ||
storageClassName: gcfs-storage | ||
volumeMode: Filesystem | ||
volumeName: gcfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: debug-worker | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: debug-worker | ||
serviceName: "" | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: debug-worker | ||
spec: | ||
containers: | ||
- command: | ||
- tail | ||
- -f | ||
- /dev/null | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /secret/gcp-credentials/key.json | ||
image: gcr.io/kubeflow-ci/test-worker:latest | ||
imagePullPolicy: Always | ||
name: test-container | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /mnt/test-data-volume | ||
name: nfs-external | ||
- mountPath: /secret/gcp-credentials | ||
name: gcp-credentials | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- name: nfs-external | ||
persistentVolumeClaim: | ||
claimName: nfs-external | ||
- name: gcp-credentials | ||
secret: | ||
defaultMode: 420 | ||
secretName: kubeflow-testing-credentials | ||
updateStrategy: | ||
type: RollingUpdate |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.