zh-trans: add broken link references (#11310)
* zh-trans: add broken link references * zh-trans: another batch of needed references * zh-trans: add needed community/static/cncf-code-of-conduct.md ref
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
<!-- Do not edit this file directly. Get the latest from
|
||||||
|
https://github.com/cncf/foundation/blob/master/code-of-conduct.md -->
|
||||||
|
## CNCF Community Code of Conduct v1.0
|
||||||
|
|
||||||
|
### Contributor Code of Conduct
|
||||||
|
|
||||||
|
As contributors and maintainers of this project, and in the interest of fostering
|
||||||
|
an open and welcoming community, we pledge to respect all people who contribute
|
||||||
|
through reporting issues, posting feature requests, updating documentation,
|
||||||
|
submitting pull requests or patches, and other activities.
|
||||||
|
|
||||||
|
We are committed to making participation in this project a harassment-free experience for
|
||||||
|
everyone, regardless of level of experience, gender, gender identity and expression,
|
||||||
|
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
|
||||||
|
religion, or nationality.
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery
|
||||||
|
* Personal attacks
|
||||||
|
* Trolling or insulting/derogatory comments
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing other's private information, such as physical or electronic addresses,
|
||||||
|
without explicit permission
|
||||||
|
* Other unethical or unprofessional conduct.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or reject
|
||||||
|
comments, commits, code, wiki edits, issues, and other contributions that are not
|
||||||
|
aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers
|
||||||
|
commit themselves to fairly and consistently applying these principles to every aspect
|
||||||
|
of managing this project. Project maintainers who do not follow or enforce the Code of
|
||||||
|
Conduct may be permanently removed from the project team.
|
||||||
|
|
||||||
|
This code of conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community.
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting
|
||||||
|
the [Kubernetes Code of Conduct Committee](https://github.com/kubernetes/community/tree/master/committee-code-of-conduct) <conduct@kubernetes.io>.
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the Contributor Covenant
|
||||||
|
(http://contributor-covenant.org), version 1.2.0, available at
|
||||||
|
http://contributor-covenant.org/version/1/2/0/
|
||||||
|
|
||||||
|
### CNCF Events Code of Conduct
|
||||||
|
|
||||||
|
CNCF events are governed by the Linux Foundation [Code of Conduct](http://events.linuxfoundation.org/events/cloudnativecon/attend/code-of-conduct) available on the event page. This is designed to be compatible with the above policy and also includes more details on responding to incidents.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-cpu-demo-2
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-cpu-demo-2-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "1.5"
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-cpu-demo-4
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-cpu-demo-4-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "800m"
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-cpu-demo-4
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-cpu-demo-4-ctr
|
||||||
|
image: vish/stress
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-cpu-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-cpu-demo-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "800m"
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: LimitRange
|
||||||
|
metadata:
|
||||||
|
name: cpu-min-max-demo-lr
|
||||||
|
spec:
|
||||||
|
limits:
|
||||||
|
- max:
|
||||||
|
cpu: "800m"
|
||||||
|
min:
|
||||||
|
cpu: "200m"
|
||||||
|
type: Container
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-cpu-demo-2
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-cpu-demo-2-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-cpu-demo-3
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-cpu-demo-3-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "0.75"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-cpu-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-cpu-demo-ctr
|
||||||
|
image: nginx
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: LimitRange
|
||||||
|
metadata:
|
||||||
|
name: cpu-limit-range
|
||||||
|
spec:
|
||||||
|
limits:
|
||||||
|
- default:
|
||||||
|
cpu: 1
|
||||||
|
defaultRequest:
|
||||||
|
cpu: 0.5
|
||||||
|
type: Container
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-mem-demo-2
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-mem-demo-2-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1.5Gi"
|
||||||
|
requests:
|
||||||
|
memory: "800Mi"
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-mem-demo-3
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-mem-demo-3-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "800Mi"
|
||||||
|
requests:
|
||||||
|
memory: "100Mi"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-mem-demo-4
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-mem-demo-4-ctr
|
||||||
|
image: nginx
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: constraints-mem-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: constraints-mem-demo-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "800Mi"
|
||||||
|
requests:
|
||||||
|
memory: "600Mi"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: LimitRange
|
||||||
|
metadata:
|
||||||
|
name: mem-min-max-demo-lr
|
||||||
|
spec:
|
||||||
|
limits:
|
||||||
|
- max:
|
||||||
|
memory: 1Gi
|
||||||
|
min:
|
||||||
|
memory: 500Mi
|
||||||
|
type: Container
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-mem-demo-2
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-mem-demo-2-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-mem-demo-3
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-mem-demo-3-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: default-mem-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: default-mem-demo-ctr
|
||||||
|
image: nginx
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: LimitRange
|
||||||
|
metadata:
|
||||||
|
name: mem-limit-range
|
||||||
|
spec:
|
||||||
|
limits:
|
||||||
|
- default:
|
||||||
|
memory: 512Mi
|
||||||
|
defaultRequest:
|
||||||
|
memory: 256Mi
|
||||||
|
type: Container
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: quota-mem-cpu-demo-2
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: quota-mem-cpu-demo-2-ctr
|
||||||
|
image: redis
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "800m"
|
||||||
|
requests:
|
||||||
|
memory: "700Mi"
|
||||||
|
cpu: "400m"
|
||||||
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: quota-mem-cpu-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: quota-mem-cpu-demo-ctr
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "800Mi"
|
||||||
|
cpu: "800m"
|
||||||
|
requests:
|
||||||
|
memory: "600Mi"
|
||||||
|
cpu: "400m"
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: mem-cpu-demo
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
requests.cpu: "1"
|
||||||
|
requests.memory: 1Gi
|
||||||
|
limits.cpu: "2"
|
||||||
|
limits.memory: 2Gi
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: pvc-quota-demo-2
|
||||||
|
spec:
|
||||||
|
storageClassName: manual
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 4Gi
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: pvc-quota-demo
|
||||||
|
spec:
|
||||||
|
storageClassName: manual
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 3Gi
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: object-quota-demo
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
persistentvolumeclaims: "1"
|
||||||
|
services.loadbalancers: "2"
|
||||||
|
services.nodeports: "0"
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: job-wq-1
|
||||||
|
spec:
|
||||||
|
completions: 8
|
||||||
|
parallelism: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: job-wq-1
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: c
|
||||||
|
image: gcr.io/<project>/job-wq-1
|
||||||
|
env:
|
||||||
|
- name: BROKER_URL
|
||||||
|
value: amqp://guest:guest@rabbitmq-service:5672
|
||||||
|
- name: QUEUE
|
||||||
|
value: job1
|
||||||
|
restartPolicy: OnFailure
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Specify BROKER_URL and QUEUE when running
|
||||||
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y curl ca-certificates amqp-tools python \
|
||||||
|
--no-install-recommends \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY ./worker.py /worker.py
|
||||||
|
|
||||||
|
CMD /usr/bin/amqp-consume --url=$BROKER_URL -q $QUEUE -c 1 /worker.py
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: job-wq-1
|
||||||
|
spec:
|
||||||
|
completions: 8
|
||||||
|
parallelism: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: job-wq-1
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: c
|
||||||
|
image: gcr.io/<project>/job-wq-1
|
||||||
|
env:
|
||||||
|
- name: BROKER_URL
|
||||||
|
value: amqp://guest:guest@rabbitmq-service:5672
|
||||||
|
- name: QUEUE
|
||||||
|
value: job1
|
||||||
|
restartPolicy: OnFailure
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
# Just prints standard out and sleeps for 10 seconds.
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
print("Processing " + sys.stdin.lines())
|
||||||
|
time.sleep(10)
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
# Just prints standard out and sleeps for 10 seconds.
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
print("Processing " + sys.stdin.lines())
|
||||||
|
time.sleep(10)
|
||||||
Reference in New Issue
Block a user