Fix podpreset task (#5705)

This commit is contained in:
Qiming
2017-10-26 04:50:27 +08:00
committed by Steve Perry
parent 56ff8f9650
commit 6ed5d06a6c
13 changed files with 300 additions and 390 deletions
@@ -0,0 +1,18 @@
apiVersion: settings.k8s.io/v1alpha1
kind: PodPreset
metadata:
name: allow-database
namespace: myns
spec:
selector:
matchLabels:
role: frontend
env:
- name: DB_PORT
value: "6379"
volumeMounts:
- mountPath: /cache
name: cache-volume
volumes:
- name: cache-volume
emptyDir: {}