Skip to content

Instantly share code, notes, and snippets.

@paha
Created September 8, 2017 20:52
Show Gist options
  • Save paha/78ab90e3fb159a9a8779f0a68df43bf1 to your computer and use it in GitHub Desktop.
Save paha/78ab90e3fb159a9a8779f0a68df43bf1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: rookeval
labels:
app: eval
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: eval
spec:
containers:
- image: ubuntu
name: rookeval
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
volumeMounts:
- name: eval-block-storage
mountPath: /eval
- name: eval-ebs-gp2
mountPath: /eval-gp2
- name: eval-ebs-io1
mountPath: /eval-io1
- name: eval-ebs-st1
mountPath: /eval-st1
volumes:
- name: eval-block-storage
persistentVolumeClaim:
claimName: rookeval-claim
- name: eval-ebs-gp2
awsElasticBlockStore:
volumeID: vol-XXX
fsType: ext4
- name: eval-ebs-io1
awsElasticBlockStore:
volumeID: vol-XXX
fsType: ext4
- name: eval-ebs-st1
awsElasticBlockStore:
volumeID: vol-XXX
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment