protoc-gen-go-micro/examples/k8s/templates/{{.File.Package}}/dpl.yaml.tmpl
2016-12-13 19:09:29 +01:00

18 lines
368 B
Cheetah

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{.File.Package}}
labels:
method: {{range .Service.Method}}{{.Name}}-{{end}}{{.File.Package}}
spec:
replicas: 3
template:
metadata:
labels:
app: {{.File.Package}}
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80