Commit Graph

54 Commits (8f656c9414592b2bef8705dbd53ba33ecf4848fd)

Author SHA1 Message Date
Qiming Teng 7a3ca9e383 Fix Deployment YAML used for SSA 2023-01-29 21:46:12 +08:00
Qiming Teng 2a80b2609d Fix examples and test cases
There are examples oversighted by the test case.
This PR adds those paths to the test case and fixes the errors
identified.
2023-01-02 16:36:51 +08:00
Rob 7da0167da6
Removed deployment replica count 2022-12-07 20:11:09 +00:00
Esteban Cano 32b5c6184b
updated nginx version to follow examples correctly
following examples https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/#scaling-the-application-by-increasing-the-replica-count
If you update replicas from 2 to 4 using the last deployment yaml, nginx version was 1.16.1, so 2 containers were already created and 2 new ones (that's why the table referenced as "The output is similar to this" shows AGE as 25s and 2m). If this deployment has nginx version 1.14.2, all containers will be recreated instead of just adding 2, so it can be confusing for the newcomers
2022-11-19 18:04:55 -03:00
Intimaria 9283a6905c
Update mysql-statefulset.yaml
As per the issue #35432, hostname command is no longer available as mysql:5.7 is based on oracle. 
For the command on line 27 to work, it is sufficient to use the $HOSTNAME variable which is set in the container,
for it to work effectively.
2022-09-04 22:26:22 -03:00
Arnaud Meukam a180cd6853
Update docs to reference new container image registry
k8s.gcr.io is deprecated in favor of registry.k8s.io. The kubernetes
codebase have been updated with the new endpoint.

Ref: https://github.com/kubernetes/k8s.io/issues/3411

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2022-08-18 16:35:26 +02:00
Rishit Dagli 83fdfc0651 Update mysql-statefulset.yaml 2022-06-23 10:39:53 +00:00
Tim Bannister 37400750f6 Add recommended labels 2022-06-20 10:57:01 +01:00
Mengjiao Liu efcaf3f3ea Revert an incorrect fix in mysql-configmap.yaml 2022-05-12 21:23:26 +08:00
wei.wang 68dbecde3a [zh]Update content/zh/examples/application/mysql/mysql-services.yaml 2022-04-25 23:36:20 +08:00
Mengjiao Liu 812dafd7ef Fix mysql-configmap.yaml error 2022-04-12 12:05:40 +08:00
Thomas Guettler 7122a4498a fix busybox image to 1.28 (issues with `nslookup`).
Changes where done with these commands:

reprec 'image: busybox(?!:)' 'image: busybox:1.28' */docs */examples
reprec -- '--image=busybox(?!:)' '--image=busybox:1.28' */docs */examples

Related issues:

 https://github.com/docker-library/busybox/issues/48
 https://github.com/kubernetes/kubernetes/issues/66924
2022-03-02 20:48:26 +01:00
Tammer Saleh 19845f593e The `schedule: "*/1 * * * *"` is the same as "* * * * *" 2021-12-29 00:19:02 +00:00
Shubham Kuchhal 21ca9a224f Add MongoDB deployment and service. 2021-06-21 18:27:52 +05:30
Jim Angel ff0018b97e updating tutorial to match source 2021-06-17 18:45:40 +00:00
Kubernetes Prow Robot 836fb1c8d1
Merge pull request #27246 from vajdaz/master
Fix typo in worker.py example script
2021-05-19 00:52:51 -07:00
Zoltan Vajda a8adf49a78 Fix typo in worker.py example script 2021-03-30 14:24:34 +02:00
Morten Torkildsen d341b96fb3 Promote Pod Disruption Budgets to GA 2021-03-29 19:58:50 -07:00
Kubernetes Prow Robot b8a717edf1
Merge pull request #27083 from soltysh/cronjob_ga
Update docs for CronJob GA
2021-03-28 23:08:44 -07:00
Maciej Szulik dba902447c
Update docs for CronJob GA 2021-03-26 16:51:42 +01:00
Aldo Culquicondor 552566fcfa Documentation for Indexed completion mode
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2021-03-16 16:54:44 -04:00
Miguel Angel Garcia a6eb08d778 fix cronjob code for examples 2021-02-11 12:24:35 +01:00
Paul Czarkowski 99029b97d7 Remove Master/Slave terminology from stateless application tutorial.
The stateless application tutorial is littered with unsuitable terminology. This update switches the database technology to a database that has already updated their own terminology as well as removes the terminology from the tutorial itself.

The advanced logging tutorial followup is set to Draft as it will take a larger effort to convert that, and I'm not convinced its even in a working state right now.

A followup PR to the examples repo to be referenced here will be made.

Addresses #22918

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>

address comments in PR

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>

remove confusing comment about dns, we can assume k8s has kube-dns

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
2021-01-19 04:19:23 +00:00
Naoki Oketani f5f40c16f9 clean up too old comments for v1.9 or before in examples 2021-01-09 16:13:00 +09:00
Kubernetes Prow Robot f2a78fa5d5
Merge pull request #23119 from devries/statefulset-mysql-language
Replace master/slave with primary/replica in MySQL StatefulSet example
2020-12-02 01:04:50 -08:00
Zhang Yong f979037143 CronJob example should include imagePullPolicy: IfNotPresent 2020-11-30 10:19:00 +08:00
Christopher Montoro 7fc8f1a220
Update the example for kubectl port-forward
Clarify that `REMOTE_PORT` is interpreted as identifying a _Service_ port when provided `TYPE` is `service`.
Also, highlight support for specifying a named port as `REMOTE_PORT`.
2020-10-07 22:02:37 -04:00
Christopher De Vries 4bb76cd0fb Change secondary to replica and use primary as an adjective consistently 2020-08-14 08:04:50 -04:00
Christopher De Vries 044d11de32 Replace master/slave with primary/secondary where possible 2020-08-13 08:59:24 -04:00
Joe Betz 648508c051 Add transferring ownership section to api concepts 2020-07-20 12:01:52 -07:00
Qiming Teng faa5a441fd Fix example tests for English site 2020-06-24 19:10:14 +08:00
Philippe Martin a478fa6610 Document retainKeys patch strategy 2020-06-10 16:23:17 +02:00
James Spurin c8975f90c7 remove default namespace from referenced yaml file 2020-04-25 18:16:44 +01:00
inductor 4297f3b29c
Update nginx to modern versions (#19198)
* update nginx versions

* update

* update examples
2020-03-17 10:48:23 -07:00
Katarzyna Kańska 1e6d12b9e0
Fix of pull request #18960 (#18974)
* Fix of pull request #18960

* Add yaml configuration file snippets

* Remove redundant code snippet for  command
2020-02-07 11:43:45 -08:00
diguage 9d21f9c105 upgrade ubuntu docker image 14.04 → 18.04 (#16926) 2019-11-04 13:28:11 -08:00
Daan Seynaeve e6a6e422bd fix bug in work-queue implementation for 'Fine Parallel Processing Using a Work Queue' (#16625) 2019-10-06 18:59:08 -07:00
Kohei Toyoda d6bcc7b8d9 Fix orders of yaml for examples. (#15763) 2019-08-09 14:33:15 -07:00
Max Kaminskiy 7126c8e9b5 Fixed typo. From utf=8 to utf-8. (#15684) 2019-08-05 20:21:53 -07:00
flytreeleft cda3efa8ee Fix MySQL slave node can not sync data with the master node in examples/application/mysql/mysql-statefulset.yaml: (#13054)
- Ignore 'xtrabackup_slave_info' if it is an empty file.
- Remove the tailing semicolon in 'xtrabackup_slave_info'.
- Stop script when 'CHANGE MASTER' is failed, then rename 'change_master_to.sql.in' only when changing master is successful.
2019-06-28 22:59:24 -07:00
John Law 58f108a489 Update shell-demo.yaml (#14892) 2019-06-19 13:04:20 -07:00
Raj Vaibhav Dubey 6930b2167f Changed the redisslave version from v1 to v3. (#14276) 2019-05-20 05:21:15 -07:00
Taher Bohari 000aa4520e Update podManagementPolicy of StatefulSet object (#13210)
In given manifest, podManagementPolicy is set as Parallel, but in later section of page, the console logs of "kubectl get pods -w -l app=zk" command displays ordered behavior, which is not the actual result in case of Parallel option.

Sample logs from doc : 
NAME      READY     STATUS    RESTARTS   AGE
zk-0      0/1       Pending   0          0s
zk-0      0/1       Pending   0         0s
zk-0      0/1       ContainerCreating   0         0s
zk-0      0/1       Running   0         19s
zk-0      1/1       Running   0         40s
zk-1      0/1       Pending   0         0s
zk-1      0/1       Pending   0         0s
zk-1      0/1       ContainerCreating   0         0s
zk-1      0/1       Running   0         18s
zk-1      1/1       Running   0         40s
zk-2      0/1       Pending   0         0s
zk-2      0/1       Pending   0         0s
zk-2      0/1       ContainerCreating   0         0s
zk-2      0/1       Running   0         19s
zk-2      1/1       Running   0         40s

## here pods are created in order

Actual results after applying the given manifest : 
[taher@kubernetes-docker ~]$ kubectl apply -f zookeeper.yaml
service/zk-hs created
service/zk-cs created
poddisruptionbudget.policy/zk-pdb created
statefulset.apps/zk created
[taher@kubernetes-docker ~]$ kubectl get pods -w -l app=zk
NAME   READY   STATUS              RESTARTS   AGE
zk-0   0/1     Pending             0          3s
zk-1   0/1     Pending             0          3s
zk-2   0/1     ContainerCreating   0          3s
zk-1   0/1   Pending   0     4s
zk-0   0/1   Pending   0     4s
zk-1   0/1   Pending   0     5s
zk-0   0/1   Pending   0     5s
zk-1   0/1   Pending   0     5s
zk-1   0/1   ContainerCreating   0     5s
zk-0   0/1   Pending   0     5s
zk-2   0/1   Running   0     19s
zk-1   0/1   Running   0     24s
zk-2   1/1   Running   0     35s
zk-1   1/1   Running   0     37s

## here pods are created in parallel

Resolution :
Either change the value of podManagementPolicy option to OrderedReady or remove that option, so that StatefulSet will take it's default behavior.
2019-04-09 22:32:12 -07:00
azarnyx 6e557559fe Update worker.py (#12403)
Fix an error reproduced with python3.6.8, python3.5.2, python2.7.12:

$ echo "Hi!"| ./worker.py

Traceback (most recent call last):
  File "./worker.py", line 6, in <module>
    print("Processing " + sys.stdin.lines())
AttributeError: '_io.TextIOWrapper' object has no attribute 'lines'
2019-01-28 11:44:01 -08:00
KUAN Hsuan-Tso 53b5165c7b Fix cassandra-statefulset.yaml indent level (#10243) 2018-09-10 02:05:52 -07:00
Qiming 472be9a374 Consolidate YAML files [part-15] (#9380)
This is the last PR for moving the YAML/JSON sample files. There still
need some follow up PRs to:
- rename the `codenew` shortcode to `code`.
- move the examples_test.go to where it really belongs.
2018-07-10 09:09:26 -07:00
Qiming 99a77ff368 Consolidate YAML files [part-13] (#9377)
This PR deals with YAML files referenced by the following two topics:
- concepts:object management
- concepts:service networking

When scanning references to the YAML files to be moved, some trivial
editings were applied to the markdown files. None of this editing should
break the build or ruin the doc otherwise.
2018-07-10 08:56:25 -07:00
Qiming b5f6df9926 Consolidate YAML files [part-8] (#9347)
* Consolidate YAML files [part-8]

This PR exacts the YAML files referenced from the following subdirs:

- docs/concepts/workloads
- docs/concepts/configuration
- docs/concepts/policy

The following problems are fixed:

- docs/concepts/workloads/controllers/ doesnt have a 'cronjob.yaml for
  test
- the exactly same `pod.yaml` was used in both the task/config-pod-container
  topic and the concepts/configuration topics.

* Update examples_test.go

* Add missing yaml file.
2018-07-02 17:35:20 -07:00
Qiming 48897cc47d Consolidate YAML files [part-7] (#9262)
* Consolidate YAML files [part-7]

This PR relocates YAML files used by Job/CronJob examples.

* Update examples_test.go
2018-07-02 13:54:17 -07:00
Qiming 3a0c618734 Consolidate YAML files [part-6] (#9261)
* Consolidate YAML files [part-6]

This PR relocates the YAML files used by the stateful application
examples.

* Update examples_test.go
2018-07-02 13:37:18 -07:00