Skip to content

Commit 6958a92

Browse files
committed
consolidating and expanding examples
1 parent a03b8c6 commit 6958a92

39 files changed

+197
-224
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ We currently include a variety of CI Images, including Alpine and Debian Stretch
1616

1717
The latest Debian Stretch release can be pulled from `quay.io/reactiveops/ci-images:v7-stretch`. A full list of the latest image tags is available on our [Quay repository](https://quay.io/repository/reactiveops/ci-images).
1818

19+
## Examples
20+
21+
rok8s-scripts is designed to work well in a wide variety of environments. That includes Bitbucket Pipelines, CircleCI, GitLab CI, and more. There are many valid ways to configure CI pipelines, we've includes a variety of [examples](/examples) in this repository.
22+
23+
Most notably, the CI example includes sample configuration for the following platforms:
24+
25+
- [Bitbucket Pipelines](/examples/ci/bitbucket-pipelines.yml)
26+
- [CircleCI](/examples/ci/.circleci/config.yml)
27+
- [GitLab CI](/examples/ci/.gitlab-ci.yml)
28+
- [Jenkins](/examples/ci/Jenkinsfile)
29+
30+
On their own, these examples may not make a lot of sense. There's a lot more documentation below that should cover everything included in these examples and more.
31+
1932
## Further Reading
2033

2134
- [Building and Pushing Docker Images](/docs/docker.md)

docs/index.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,21 @@ We currently include a variety of CI Images, including Alpine and Debian Stretch
1616

1717
The latest Debian Stretch release can be pulled from `quay.io/reactiveops/ci-images:v7-stretch`. A full list of the latest image tags is available on our [Quay repository](https://quay.io/repository/reactiveops/ci-images).
1818

19+
## Examples
20+
21+
rok8s-scripts is designed to work well in a wide variety of environments. That includes Bitbucket Pipelines, CircleCI, GitLab CI, and more. There are many valid ways to configure CI pipelines, we've includes a variety of [examples](/examples) in this repository.
22+
23+
Most notably, the CI example includes sample configuration for the following platforms:
24+
25+
- [Bitbucket Pipelines](/examples/ci/bitbucket-pipelines.yml)
26+
- [CircleCI](/examples/ci/.circleci/config.yml)
27+
- [GitLab CI](/examples/ci/.gitlab-ci.yml)
28+
- [Jenkins](/examples/ci/Jenkinsfile)
29+
30+
On their own, these examples may not make a lot of sense. There's a lot more documentation below that should cover everything included in these examples and more.
31+
1932
## Further Reading
33+
2034
- [Building and Pushing Docker Images](/docs/docker.md)
2135
- [Deploying to Kubernetes with Helm](/docs/helm.md)
2236
- [Deploying to Kubernetes without Helm](/docs/without_helm.md)
@@ -26,11 +40,6 @@ The latest Debian Stretch release can be pulled from `quay.io/reactiveops/ci-ima
2640
- [Amazon Web Services](/docs/aws.md)
2741
- [Google Cloud](/docs/gcp.md)
2842

29-
### CI Specific Documentation
30-
- CircleCI
31-
- GitLab CI
32-
- Bitbucket Pipelines
33-
3443
### Contributing
3544
- [Releasing New Versions of rok8s-scripts](/docs/releasing.md)
3645

docs/without_helm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ k8s-deploy-and-verify -f deploy/development.config
4646

4747
More indepth examples are available in the [examples directory](/examples).
4848

49+
## Versioning
50+
**If a Docker image is used in the file then any cases of `:latest` will be replaced with th `CI_SHA1` if it is defined.** This allows a set image tag to be used when deploying from a CI system. When files that could use `CI_SHA1` are deployed, a new file will be created with that value as part of the filename.
51+
52+
If using an HPA, set `replicas: hpa` in the deployment file to have k8s-deploy get the current number of replicas from the cluster and deploy that number of replicas. This is a workaround for an open issue (https://github.com/kubernetes/kubernetes/issues/25238).
4953

5054
## Deployment Configuration
5155
Listed below are all the types of resources rok8s-scripts supports. In all cases, the filename suffix is important and must match the spec precisely.

examples/Jenkins-K8s-Plugin/Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/.helmignore

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/Chart.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/templates/NOTES.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/templates/_helpers.tpl

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/templates/configmap.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/Jenkins-K8s-Plugin/charts/example/templates/deployment.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)