sync en zh example yaml (#19779)

This commit is contained in:
chentanjun
2020-03-23 11:30:45 +08:00
committed by GitHub
parent 7375753cae
commit 9a332233c0
9 changed files with 592 additions and 614 deletions
@@ -15,6 +15,8 @@ spec:
name: fluentd-elasticsearch name: fluentd-elasticsearch
spec: spec:
tolerations: tolerations:
# this toleration is to have the daemonset runnable on master nodes
# remove it if your masters can't run pods
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master
effect: NoSchedule effect: NoSchedule
containers: containers:
@@ -11,28 +11,11 @@ spec:
selector: selector:
matchLabels: matchLabels:
tier: frontend tier: frontend
matchExpressions:
- {key: tier, operator: In, values: [frontend]}
template: template:
metadata: metadata:
labels: labels:
app: guestbook
tier: frontend tier: frontend
spec: spec:
containers: containers:
- name: php-redis - name: php-redis
image: gcr.io/google_samples/gb-frontend:v3 image: gcr.io/google_samples/gb-frontend:v3
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: GET_HOSTS_FROM
value: dns
# If your cluster config does not include a dns service, then to
# instead access environment variables to find service host
# info, comment out the 'value: dns' line above, and uncomment the
# line below.
# value: env
ports:
- containerPort: 80
@@ -16,6 +16,6 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx:1.15.4 image: nginx:1.14.2
ports: ports:
- containerPort: 80 - containerPort: 80
@@ -1,5 +1,5 @@
kind: ConfigMap
apiVersion: v1 apiVersion: v1
kind: ConfigMap
data: data:
containers.input.conf: |- containers.input.conf: |-
# This configuration file for Fluentd is used # This configuration file for Fluentd is used
@@ -14,9 +14,6 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /cache - mountPath: /cache
name: cache-volume name: cache-volume
- mountPath: /etc/app/config.json
readOnly: true
name: secret-volume
ports: ports:
- containerPort: 80 - containerPort: 80
env: env:
@@ -32,6 +29,3 @@ spec:
volumes: volumes:
- name: cache-volume - name: cache-volume
emptyDir: {} emptyDir: {}
- name: secret-volume
secret:
secretName: config-details
@@ -19,12 +19,6 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /cache - mountPath: /cache
name: cache-volume name: cache-volume
- mountPath: /etc/app/config.json
readOnly: true
name: secret-volume
volumes: volumes:
- name: cache-volume - name: cache-volume
emptyDir: {} emptyDir: {}
- name: secret-volume
secret:
secretName: config-details
@@ -1,5 +1,5 @@
kind: Service
apiVersion: v1 apiVersion: v1
kind: Service
metadata: metadata:
name: hello name: hello
spec: spec:
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: test-ingress name: test-ingress
@@ -35,6 +35,9 @@ spec:
- name: secret-volume - name: secret-volume
secret: secret:
secretName: nginxsecret secretName: nginxsecret
- name: configmap-volume
configMap:
name: nginxconfigmap
containers: containers:
- name: nginxhttps - name: nginxhttps
image: bprashanth/nginxhttps:1.0 image: bprashanth/nginxhttps:1.0
@@ -44,3 +47,5 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /etc/nginx/ssl - mountPath: /etc/nginx/ssl
name: secret-volume name: secret-volume
- mountPath: /etc/nginx/conf.d
name: configmap-volume