Created
June 13, 2016 16:10
-
-
Save elsonrodriguez/490066d1243238bc10a9060dd73e29ca to your computer and use it in GitHub Desktop.
Smoke test for automatic PVCs and PetSets
This file contains hidden or 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
apiVersion: apps/v1alpha1 | |
kind: PetSet | |
metadata: | |
labels: | |
name: mongo | |
name: mongo | |
spec: | |
replicas: 1 | |
serviceName: mongo | |
volumeClaimTemplates: | |
- metadata: | |
name: mongo | |
annotations: | |
volume.alpha.kubernetes.io/storage-class: "mongo" | |
spec: | |
accessModes: | |
- "ReadWriteOnce" | |
resources: | |
requests: | |
storage: "5Gi" | |
template: | |
metadata: | |
labels: | |
name: mongo | |
annotations: | |
pod.alpha.kubernetes.io/initialized: "true" | |
spec: | |
containers: | |
- image: mongo | |
name: mongo | |
ports: | |
- name: mongo | |
containerPort: 27017 | |
hostPort: 27017 | |
volumeMounts: | |
- name: mongo | |
mountPath: /data/db |
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
name: mongo | |
name: mongo | |
spec: | |
ports: | |
- port: 27017 | |
targetPort: 27017 | |
selector: | |
name: mongo | |
clusterIP: None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment