Commit Graph

30 Commits (1ec02b1cd5a9902e5eca8fe37c4b0d1f9686612e)

Author SHA1 Message Date
Kubernetes Submit Queue bd388e0d82 Merge pull request #51310 from xiangpengzhao/sc-eg
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Replace storage-class annotations with field in examples

**What this PR does / why we need it**:
storage class is already GA. Replace annotations with field `StorageClassName` in examples.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #51435 (update: thanks @gyliu513 for the issue)
ref: https://github.com/kubernetes/kubernetes/pull/50654#discussion_r134954171

**Special notes for your reviewer**:
We may also want to remove the beta annotations in 1.8 since the field will have already been in two releases. If @kubernetes/sig-storage-api-reviews confirm this, I'd like to help remove it.

/cc @liggitt @jsafrane @msau42 

**Release note**:

```release-note
NONE
```
2017-10-18 20:31:15 -07:00
Joey Pereira 850788c583 Update CockroachDB tag to v1.1.0 2017-10-12 12:31:21 -04:00
xiangpengzhao 4bc05f4fc2 Remove storage-class annotations in examples 2017-09-29 10:09:30 +08:00
Jordan Lewis 82cecd9080 Update example to CockroachDB v1.0.5 2017-08-24 14:42:52 -04:00
Kubernetes Submit Queue 269d7c3bb5 Merge pull request #48556 from tamird/patch-1
Automatic merge from submit-queue (batch tested with PRs 46973, 48556)

Update CockroachDB tag to v1.0.3

@a-robinson
2017-07-15 18:02:38 -07:00
Sebastien Goasguen b0bc271ef3 add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
Tamir Duberstein a17f2d7b78 Update CockroachDB tag to v1.0.3 2017-07-06 14:15:22 -04:00
Kubernetes Submit Queue b47ac2efb2 Merge pull request #46878 from cdrage/update-cockroach
Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947)

Adds --insecure to cockroachdb client command
2017-06-24 04:15:52 -07:00
Charlie Drage f0efe24f52 Adds --insecure to cockroachdb client command
Cockroach errors out when using said command:

```shell
▶  kubectl run -it --rm cockroach-client --image=cockroachdb/cockroach --restart=Never --command -- ./cockroach sql --host cockroachdb-public
Waiting for pod default/cockroach-client to be running, status is Pending, pod ready: false
Waiting for pod default/cockroach-client to be running, status is Pending, pod ready: false
Waiting for pod default/cockroach-client to be running, status is Pending, pod ready: false
If you don't see a command prompt, try pressing enter.
                                                      Error attaching, falling back to logs: unable to upgrade connection: container cockroach-client not found in pod cockroach-client_default
Error: problem using security settings, did you mean to use --insecure?: problem with CA certificate: not found
Failed running "sql"
Waiting for pod default/cockroach-client to terminate, status is Running
pod "cockroach-client" deleted
```

This PR updates the README.md to include --insecure in the client command
2017-06-02 15:59:01 -04:00
Alex Robinson 1ef64eb670 Support custom domains in the cockroachdb example's init container
This switches from using v0.1 of the peer-finder image to a version that
includes https://github.com/kubernetes/contrib/pull/2013

While I'm here, switch the version of cockroachdb from 1.0 to 1.0.1
2017-05-31 15:15:27 -04:00
Alex Robinson 09516cfb07 Add explicit image tag to cockroachdb example and test 2017-05-11 15:12:38 -04:00
Alex Robinson 1a3b754763 Fix broken indentation in cockroachdb config from #45447
While I'm here, bring the e2e config precisely in line with the example
config.
2017-05-11 15:12:38 -04:00
Guangya Liu 49c8ed802a Put initContainers to PodSpec for some statefulset examples. 2017-05-06 17:55:09 +08:00
Guangya Liu 309902ef64 Put podAntiAffinity in PodSpec. 2017-05-04 10:11:24 +08:00
Alex Robinson 5e1888ac9e Add OWNERS file for CockroachDB example 2017-02-15 16:17:17 -05:00
Alex Robinson 429e070b01 Fix statefulset e2e test
...by removing the liveness/readiness probes from the cockroachdb
manifests, as explained in
github.com/kubernetes/test-infra/issues/1740#issuecomment-279555187
2017-02-14 10:16:32 -05:00
Kubernetes Submit Queue e6ed110705 Merge pull request #39103 from a-robinson/v1.5
Automatic merge from submit-queue (batch tested with PRs 40335, 40320, 40324, 39103, 40315)

Add pod anti-affinity and a disruption budget to cockroachdb example

Pulling in some useful 1.5 features.
2017-01-24 17:30:08 -08:00
Alex Robinson ff2ddbf208 Add pod anti-affinity and a disruption budget to cockroachdb example 2016-12-29 16:11:42 -05:00
Michail Kargakis fa02986c80 examples: use 'kubectl scale' in cockroach statefulset example 2016-12-23 15:37:18 +01:00
Janet Kuo b88bebded5 Remove initialized annotation from statefulset examples 2016-11-23 10:40:42 -08:00
Jimmy Cuadra d42eabd9d2 Rename PetSet to StatefulSet in docs and examples. 2016-11-05 00:17:28 -07:00
Janet Kuo c15b9470f5 Replace apps/v1alpha1 with apps/v1beta1 and manually remove generated apps/v1alpha1 files
Manually remove generated apps/v1alpha1 types, protobuf, and api-reference doc files
Manually remove apps/v1alpha1 folder from 1.5 generated client
2016-11-02 15:16:23 -07:00
Alex Robinson 6b98de39a5 Improve CockroachDB example
* Use an init container to eliminate potential edge case where losing
  the first pet's could cause it to start a second logical cluster
* Exec the cockroach binary so that it runs as PID 1 in the container
* Make some small improvements to the README
2016-10-31 15:48:41 -04:00
Tim Hockin b0fa2056a6 Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
Alex Robinson b9f0b04e58 Don't tolerate unready endpoints in cockroachdb example
That was only included in the initial config due to cargo-culting, and
has the potential to break node startup if it resolves its own address
to gossip to.
2016-09-29 15:36:55 -04:00
Kubernetes Submit Queue ee98966ec9 Merge pull request #31125 from a-robinson/example-petset-cockroachdb
Automatic merge from submit-queue

Productionize the cockroachdb example a little more

Includes:
* A service for clients to use
* Readiness/liveness probes
* An extended graceful termination period
* Automatic prometheus monitoring (when prometheus is configured to watch for annotations on services, as in [CoreOS's recent blog post](https://coreos.com/blog/prometheus-and-kubernetes-up-and-running.html), for example)

I'm leaving the management of certs to future work, but if anyone that sees this needs help with them in the meantime, don't hesitate to reach out.

Successor to #28446

@bprashanth - if you're still interested in / open to an e2e test (as mentioned in https://github.com/cockroachdb/cockroach/issues/5967#issuecomment-230188807), let me know and I'll put one together. If so, I assume you'd want it as part of the `petset` test group rather than the `examples` tests?

cc @tschottdorf 

**Release note**:
```release-note
NONE
```
2016-09-10 05:03:51 -07:00
David McMahon 385fb81407 Update the latestReleaseBranch to release-1.4 in the munger. 2016-09-01 14:40:55 -07:00
Alex Robinson 98b6d0672d Productionize the cockroachdb example a little more
Includes:
* A service for clients to use
* Readiness/liveness probes
* An extended graceful termination period
* Easy clean-up of all created resources
2016-08-24 15:03:17 -04:00
Alex Robinson 01cf564eaa Add automatic prometheus monitoring to the cockroachdb example 2016-08-22 10:55:01 -04:00
Tobias Schottdorf 6889f83a00 Add a CockroachDB PetSet example
The example starts a simple five-node cluster with otherwise
default setting (in particular, 3x replication).
2016-08-18 15:59:06 -04:00