-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ru] Add RU localization - manage-deployment.md
Apply suggestions from code review Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com> Add examples/application files to RU
- Loading branch information
Showing
51 changed files
with
2,042 additions
and
2 deletions.
There are no files selected for viewing
452 changes: 452 additions & 0 deletions
452
content/ru/docs/concepts/cluster-administration/manage-deployment.md
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
content/ru/examples/application/cassandra/cassandra-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: cassandra | ||
name: cassandra | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- port: 9042 | ||
selector: | ||
app: cassandra |
100 changes: 100 additions & 0 deletions
100
content/ru/examples/application/cassandra/cassandra-statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cassandra | ||
labels: | ||
app: cassandra | ||
spec: | ||
serviceName: cassandra | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: cassandra | ||
template: | ||
metadata: | ||
labels: | ||
app: cassandra | ||
spec: | ||
terminationGracePeriodSeconds: 1800 | ||
containers: | ||
- name: cassandra | ||
image: gcr.io/google-samples/cassandra:v13 | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 7000 | ||
name: intra-node | ||
- containerPort: 7001 | ||
name: tls-intra-node | ||
- containerPort: 7199 | ||
name: jmx | ||
- containerPort: 9042 | ||
name: cql | ||
resources: | ||
limits: | ||
cpu: "500m" | ||
memory: 1Gi | ||
requests: | ||
cpu: "500m" | ||
memory: 1Gi | ||
securityContext: | ||
capabilities: | ||
add: | ||
- IPC_LOCK | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- -c | ||
- nodetool drain | ||
env: | ||
- name: MAX_HEAP_SIZE | ||
value: 512M | ||
- name: HEAP_NEWSIZE | ||
value: 100M | ||
- name: CASSANDRA_SEEDS | ||
value: "cassandra-0.cassandra.default.svc.cluster.local" | ||
- name: CASSANDRA_CLUSTER_NAME | ||
value: "K8Demo" | ||
- name: CASSANDRA_DC | ||
value: "DC1-K8Demo" | ||
- name: CASSANDRA_RACK | ||
value: "Rack1-K8Demo" | ||
- name: POD_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.podIP | ||
readinessProbe: | ||
exec: | ||
command: | ||
- /bin/bash | ||
- -c | ||
- /ready-probe.sh | ||
initialDelaySeconds: 15 | ||
timeoutSeconds: 5 | ||
# These volume mounts are persistent. They are like inline claims, | ||
# but not exactly because the names need to match exactly one of | ||
# the stateful pod volumes. | ||
volumeMounts: | ||
- name: cassandra-data | ||
mountPath: /cassandra_data | ||
# These are converted to volume claims by the controller | ||
# and mounted at the paths mentioned above. | ||
# do not use these in production until ssd GCEPersistentDisk or other ssd pd | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: cassandra-data | ||
spec: | ||
accessModes: [ "ReadWriteOnce" ] | ||
storageClassName: fast | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: fast | ||
provisioner: k8s.io/minikube-hostpath | ||
parameters: | ||
type: pd-ssd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: patch-demo | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: patch-demo-ctr | ||
image: nginx | ||
tolerations: | ||
- effect: NoSchedule | ||
key: dedicated | ||
value: test-team |
19 changes: 19 additions & 0 deletions
19
content/ru/examples/application/deployment-retainkeys.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: retainkeys-demo | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 30% | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: retainkeys-demo-ctr | ||
image: nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
replicas: 4 # Update the replicas from 2 to 4 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.14.2 | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
replicas: 2 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.16.1 # Update the version of nginx from 1.14.2 to 1.16.1 | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
content/ru/examples/application/guestbook/frontend-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: frontend | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: guestbook | ||
tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
containers: | ||
- name: php-redis | ||
image: gcr.io/google_samples/gb-frontend:v5 | ||
env: | ||
- name: GET_HOSTS_FROM | ||
value: "dns" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
ports: | ||
- containerPort: 80 |
19 changes: 19 additions & 0 deletions
19
content/ru/examples/application/guestbook/frontend-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: frontend | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
# if your cluster supports it, uncomment the following to automatically create | ||
# an external load-balanced IP for the frontend service. | ||
# type: LoadBalancer | ||
#type: LoadBalancer | ||
ports: | ||
# the port that this service should serve on | ||
- port: 80 | ||
selector: | ||
app: guestbook | ||
tier: frontend |
30 changes: 30 additions & 0 deletions
30
content/ru/examples/application/guestbook/redis-follower-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-follower | ||
labels: | ||
app: redis | ||
role: follower | ||
tier: backend | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: follower | ||
tier: backend | ||
spec: | ||
containers: | ||
- name: follower | ||
image: gcr.io/google_samples/gb-redis-follower:v2 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
ports: | ||
- containerPort: 6379 |
17 changes: 17 additions & 0 deletions
17
content/ru/examples/application/guestbook/redis-follower-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis-follower | ||
labels: | ||
app: redis | ||
role: follower | ||
tier: backend | ||
spec: | ||
ports: | ||
# the port that this service should serve on | ||
- port: 6379 | ||
selector: | ||
app: redis | ||
role: follower | ||
tier: backend |
30 changes: 30 additions & 0 deletions
30
content/ru/examples/application/guestbook/redis-leader-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-leader | ||
labels: | ||
app: redis | ||
role: leader | ||
tier: backend | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: leader | ||
tier: backend | ||
spec: | ||
containers: | ||
- name: leader | ||
image: "docker.io/redis:6.0.5" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
ports: | ||
- containerPort: 6379 |
17 changes: 17 additions & 0 deletions
17
content/ru/examples/application/guestbook/redis-leader-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis-leader | ||
labels: | ||
app: redis | ||
role: leader | ||
tier: backend | ||
spec: | ||
ports: | ||
- port: 6379 | ||
targetPort: 6379 | ||
selector: | ||
app: redis | ||
role: leader | ||
tier: backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: autoscaling/v1 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: php-apache | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: php-apache | ||
minReplicas: 1 | ||
maxReplicas: 10 | ||
targetCPUUtilizationPercentage: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: hello | ||
spec: | ||
schedule: "* * * * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: hello | ||
image: busybox:1.28 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /bin/sh | ||
- -c | ||
- date; echo Hello from the Kubernetes cluster | ||
restartPolicy: OnFailure |
Oops, something went wrong.