Skip to content

Commit 9a33223

Browse files
authored
sync en zh example yaml (#19779)
1 parent 7375753 commit 9a33223

File tree

9 files changed

+592
-614
lines changed

9 files changed

+592
-614
lines changed
Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
1-
apiVersion: apps/v1
2-
kind: DaemonSet
3-
metadata:
4-
name: fluentd-elasticsearch
5-
namespace: kube-system
6-
labels:
7-
k8s-app: fluentd-logging
8-
spec:
9-
selector:
10-
matchLabels:
11-
name: fluentd-elasticsearch
12-
template:
13-
metadata:
14-
labels:
15-
name: fluentd-elasticsearch
16-
spec:
17-
tolerations:
18-
- key: node-role.kubernetes.io/master
19-
effect: NoSchedule
20-
containers:
21-
- name: fluentd-elasticsearch
22-
image: quay.io/fluentd_elasticsearch/fluentd:v2.5.2
23-
resources:
24-
limits:
25-
memory: 200Mi
26-
requests:
27-
cpu: 100m
28-
memory: 200Mi
29-
volumeMounts:
30-
- name: varlog
31-
mountPath: /var/log
32-
- name: varlibdockercontainers
33-
mountPath: /var/lib/docker/containers
34-
readOnly: true
35-
terminationGracePeriodSeconds: 30
36-
volumes:
37-
- name: varlog
38-
hostPath:
39-
path: /var/log
40-
- name: varlibdockercontainers
41-
hostPath:
42-
path: /var/lib/docker/containers
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: fluentd-elasticsearch
5+
namespace: kube-system
6+
labels:
7+
k8s-app: fluentd-logging
8+
spec:
9+
selector:
10+
matchLabels:
11+
name: fluentd-elasticsearch
12+
template:
13+
metadata:
14+
labels:
15+
name: fluentd-elasticsearch
16+
spec:
17+
tolerations:
18+
# this toleration is to have the daemonset runnable on master nodes
19+
# remove it if your masters can't run pods
20+
- key: node-role.kubernetes.io/master
21+
effect: NoSchedule
22+
containers:
23+
- name: fluentd-elasticsearch
24+
image: quay.io/fluentd_elasticsearch/fluentd:v2.5.2
25+
resources:
26+
limits:
27+
memory: 200Mi
28+
requests:
29+
cpu: 100m
30+
memory: 200Mi
31+
volumeMounts:
32+
- name: varlog
33+
mountPath: /var/log
34+
- name: varlibdockercontainers
35+
mountPath: /var/lib/docker/containers
36+
readOnly: true
37+
terminationGracePeriodSeconds: 30
38+
volumes:
39+
- name: varlog
40+
hostPath:
41+
path: /var/log
42+
- name: varlibdockercontainers
43+
hostPath:
44+
path: /var/lib/docker/containers
Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,21 @@
1-
apiVersion: apps/v1
2-
kind: ReplicaSet
3-
metadata:
4-
name: frontend
5-
labels:
6-
app: guestbook
7-
tier: frontend
8-
spec:
9-
# modify replicas according to your case
10-
replicas: 3
11-
selector:
12-
matchLabels:
13-
tier: frontend
14-
matchExpressions:
15-
- {key: tier, operator: In, values: [frontend]}
16-
template:
17-
metadata:
18-
labels:
19-
app: guestbook
20-
tier: frontend
21-
spec:
22-
containers:
23-
- name: php-redis
24-
image: gcr.io/google_samples/gb-frontend:v3
25-
resources:
26-
requests:
27-
cpu: 100m
28-
memory: 100Mi
29-
env:
30-
- name: GET_HOSTS_FROM
31-
value: dns
32-
# If your cluster config does not include a dns service, then to
33-
# instead access environment variables to find service host
34-
# info, comment out the 'value: dns' line above, and uncomment the
35-
# line below.
36-
# value: env
37-
ports:
38-
- containerPort: 80
1+
apiVersion: apps/v1
2+
kind: ReplicaSet
3+
metadata:
4+
name: frontend
5+
labels:
6+
app: guestbook
7+
tier: frontend
8+
spec:
9+
# modify replicas according to your case
10+
replicas: 3
11+
selector:
12+
matchLabels:
13+
tier: frontend
14+
template:
15+
metadata:
16+
labels:
17+
tier: frontend
18+
spec:
19+
containers:
20+
- name: php-redis
21+
image: gcr.io/google_samples/gb-frontend:v3
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
apiVersion: apps/v1
2-
kind: Deployment
3-
metadata:
4-
name: nginx-deployment
5-
labels:
6-
app: nginx
7-
spec:
8-
replicas: 3
9-
selector:
10-
matchLabels:
11-
app: nginx
12-
template:
13-
metadata:
14-
labels:
15-
app: nginx
16-
spec:
17-
containers:
18-
- name: nginx
19-
image: nginx:1.15.4
20-
ports:
21-
- containerPort: 80
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx-deployment
5+
labels:
6+
app: nginx
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: nginx
12+
template:
13+
metadata:
14+
labels:
15+
app: nginx
16+
spec:
17+
containers:
18+
- name: nginx
19+
image: nginx:1.14.2
20+
ports:
21+
- containerPort: 80

0 commit comments

Comments
 (0)