Skip to content

Instantly share code, notes, and snippets.

@mszostok
Created November 23, 2018 13:12
Show Gist options
  • Save mszostok/613555587b61cf1ba0f9a3490be639bd to your computer and use it in GitHub Desktop.
Save mszostok/613555587b61cf1ba0f9a3490be639bd to your computer and use it in GitHub Desktop.
PodPreset from the k8s
apiVersion: settings.svcat.k8s.io/v1alpha1
kind: PodPreset
metadata:
name: allow-database
spec:
selector:
matchLabels:
role: frontend
env:
- name: DB_PORT
value: "6379"
volumeMounts:
- mountPath: /cache
name: cache-volume
volumes:
- name: cache-volume
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment