File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : nsqd
2+ home : https://github.com/deis/nsq
3+ version : <Will be populated by the ci before publishing the chart>
4+ description : A kubernetes based docker image for running nsq daemon.
5+ maintainers :
6+ - name : Deis Team
7+ email : engineering@deis.com
Original file line number Diff line number Diff line change 1+ apiVersion : extensions/v1beta1
2+ kind : Deployment
3+ metadata :
4+ name : deis-nsqd
5+ labels :
6+ heritage : deis
7+ annotations :
8+ component.deis.io/version : {{ .Values.docker_tag }}
9+ spec :
10+ replicas : 1
11+ strategy :
12+ type : Recreate
13+ selector :
14+ matchLabels :
15+ app : deis-nsqd
16+ template :
17+ metadata :
18+ labels :
19+ app : deis-nsqd
20+ spec :
21+ serviceAccount : deis-nsqd
22+ containers :
23+ - name : deis-nsqd
24+ image : quay.io/{{.Values.org}}/nsq:{{.Values.docker_tag}}
25+ imagePullPolicy : {{.Values.pull_policy}}
26+ {{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
27+ resources :
28+ limits :
29+ {{- if (.Values.limits_cpu) }}
30+ cpu : {{.Values.limits_cpu}}
31+ {{- end}}
32+ {{- if (.Values.limits_memory) }}
33+ memory : {{.Values.limits_memory}}
34+ {{- end}}
35+ {{- end}}
36+ command :
37+ - /opt/nsq/bin/start-nsqd
38+ ports :
39+ - containerPort : 4151
40+ name : http
41+ protocol : TCP
42+ - containerPort : 4150
43+ name : transport
44+ protocol : TCP
45+ livenessProbe :
46+ httpGet :
47+ path : /ping
48+ port : 4151
49+ initialDelaySeconds : 5
50+ timeoutSeconds : 1
51+ readinessProbe :
52+ httpGet :
53+ path : /ping
54+ port : 4151
55+ initialDelaySeconds : 5
56+ timeoutSeconds : 1
57+ env :
58+ - name : POD_NAMESPACE
59+ valueFrom :
60+ fieldRef :
61+ fieldPath : metadata.namespace
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ServiceAccount
3+ metadata :
4+ name : deis-nsqd
5+ labels :
6+ heritage : deis
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : deis-nsqd
5+ labels :
6+ heritage : deis
7+ app : deis-nsqd
8+ spec :
9+ ports :
10+ - port : 4151
11+ name : http
12+ targetPort : http
13+ - port : 4150
14+ name : transport
15+ targetPort : transport
16+ selector :
17+ app : deis-nsqd
Original file line number Diff line number Diff line change 1+ org : " deisci"
2+ pull_policy : " Always"
3+ docker_tag : " canary"
4+ # limits_cpu: "100m"
5+ # limits_memory: "50Mi"
You can’t perform that action at this time.
0 commit comments