Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update boskos stateful set to use RollingUpdate (default @v1) #13594

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 5 additions & 37 deletions boskos/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,6 @@ apiVersion: v1
kind: Namespace
metadata:
name: test-pods
---
apiVersion: v1
kind: PersistentVolume
metadata:
labels:
app: boskos
name: boskos-storage
namespace: test-pods
spec:
claimRef:
name: boskos-volume-boskos-0
namespace: test-pods
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: "/tmp/dir"
type: "DirectoryOrCreate"
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down Expand Up @@ -67,15 +46,16 @@ roleRef:
name: boskos
apiGroup: rbac.authorization.k8s.io
---
# Start of StatefulSet
apiVersion: apps/v1beta1
kind: StatefulSet
apiVersion: apps/v1
kind: Deployment
metadata:
name: boskos
namespace: test-pods
spec:
serviceName: "boskos"
replicas: 1 # one canonical source of resources
selector:
matchLabels:
app: boskos
template:
metadata:
labels:
Expand All @@ -88,28 +68,16 @@ spec:
- name: boskos
image: gcr.io/k8s-prow/boskos/boskos:v20190723-99235c860
args:
- --storage=/store/boskos.json
- --config=/etc/config/config
- --namespace=test-pods
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- name: boskos-volume
mountPath: /store
- name: boskos-config
mountPath: /etc/config
readOnly: true
volumes:
- name: boskos-config
configMap:
name: resources
volumeClaimTemplates:
- metadata:
name: boskos-volume
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: boskos
resources:
requests:
storage: 1Gi