Commit Graph

41 Commits (b952419be6e021b42936935bd364931619fe925b)

Author SHA1 Message Date
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
Qiming ea11ae29ac Consolidate YAML files [part-5] (#9258)
* Consolidate YAML files [part-5]

This PR relocates the yaml files used in stateless application
guestbook. This PR also fixes the list numbering and code block
problems in the page.

Note that neither code blocks nor note callouts live happily inside a
numbered list, so this PR moves them out of such lists.

* Update examples_test.go
2018-07-02 13:06:18 -07:00
Qiming d15da5a726 Consolidate YAML files [part-4] (#9241)
This PR consolidates YAML files used in the
`tasks/debug-application-cluster` subdirectory.

Depends-On: #9236
2018-07-02 11:17:19 -07:00
Qiming a11e02d575 Consolidate YAML files [part-3] (#9237)
This PR consolidates YAML files used in `tasks/run-application`
subdirectory.
2018-07-02 11:15:20 -07:00
Qiming a3415f6228 Consolidate YAML files [part-2] (#9236)
Changes that will help upcoming consolidation work:

- Add variable `githubWebsiteRaw` to config.toml to facilitate building
  links to raw YAML files
- Revise `codenew` shortcode to generate links to raw YAML files instead
  of github.com file view;
- Rename `artifacts` directory to `examples` to better reflect its usage;

Accompanied changes as show cases:

- Moved `deployment.yaml`, `deployment-update.yaml` and
  `deployment-scale.yaml` to the new `examples/application` subdirectory;
- Removed duplicate instances of the above YAML files in other
  directories;
- Update example_test.go to test the relocated YAML files and removed
  testing for files that no longer needed.
2018-06-26 09:34:52 -07:00