-
Notifications
You must be signed in to change notification settings - Fork 0
/
multiple-images.yaml
52 lines (52 loc) · 1.69 KB
/
multiple-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: ww-gitops
namespace: flux-system
annotations:
metadata.weave.works/description: 'This is my Weave GitOps applicatin'
metadata.weave.works/metrics-dashboard: 'https://www.google.com/'
metadata.weave.works/anything: 'this is other random thing'
spec:
replicas: 2
selector:
matchLabels:
name: memcached
template:
metadata:
labels:
name: memcached
spec:
initContainers:
- name: fetch-source
image: weaveworks/scope:master-189789ec
imagePullPolicy: IfNotPresent
command:
- curl
- -o
- /demosource/demo.json
- https://raw.githubusercontent.com/weaveworks/scope/v1.13.1/docker/demo.json
containers:
- name: memcached
image: memcached:1.5.11-alpine
imagePullPolicy: IfNotPresent
args:
- -m 16 # Maximum memory to use, in megabytes. 64MB is default. Update memory request below if you change this
- -p 11211 # Default port, but being explicit is nice.
- -v # Don't be too verbose, but print warnings.
- -I 4m # Maximum item size
ports:
- name: clients
containerPort: 11211
resources:
requests:
cpu: 10m # Based on observed values during April 2020
memory: 18Mi # -m argument + 10% (see memcached documentation for rationale)
- name: exporter
image: prom/memcached-exporter:v0.4.1
args:
- --memcached.address=localhost:11211
- --web.listen-address=0.0.0.0:9150
ports:
- name: prom
containerPort: 9150