Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 505 Bytes
# https://cheatsheet.dennyzhang.com/kubernetes-yaml-templates
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dummy-controller
namespace: myns
spec:
replicas: 1
template:
metadata:
labels:
app: dummy-controller
spec:
containers:
- name: dummy-controller
image: my/dummy-controller
imagePullPolicy: Always
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace