forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding rookout agent chart * icon added * commit with user * commit with user email * Adding rookout agent chart * icon added * commit with user * commit with user email * change tag to stable version * Add release to labels * Add release to labels * Add labels to metadata * Fix indentation * Fix indentation + update apiVersion * Add standard labels * Add rookout chart to stable * Typo * Fix spaces * Fix spaces * remove fluentd * remove fluentd * Fix new lines * Fix new lines in stable * Add home to chert * Fix new lines in stable * Fix new lines in stable * remove rookout from incubator * Add maintainer * Add new line to chart yaml * Fix spaces * Add README and update deployment & values * Add NOTES * Fix version + add spaces * add EOf to deployment * fix EOF and token default value at deployment * update app version * indentation for values * indentation for values * Update deployment.yaml
- Loading branch information
1 parent
cbd51d6
commit a191a7d
Showing
8 changed files
with
235 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
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,10 @@ | ||
apiVersion: v1 | ||
appVersion: "1.0" | ||
description: A Helm chart for Rookout agent on Kubernetes | ||
icon: https://app.rookout.com/static/rookout/img/logo.svg | ||
name: rookout | ||
version: 0.1.0 | ||
home: "http://rookout.com/" | ||
maintainers: | ||
- name: Zohar | ||
email: [email protected] |
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,69 @@ | ||
# Rookout | ||
|
||
[Rookout](http://rookout.com/) Get data from your live code, as it runs. Extract any piece of data from your code and pipeline it anywhere, in realtime, even if you’d never thought about it beforehand or created any instrumentation to collect it. | ||
|
||
## TL;DR; | ||
|
||
```bash | ||
$ helm install --name my-release stable/rookout --set token=YOUR_ORGANIZATIONAL_TOKEN | ||
``` | ||
|
||
## Introduction | ||
|
||
This chart bootstraps a [Rookout Router](https://docs.rookout.com/docs/installation-agent.html) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.9+ with Beta APIs enabled | ||
|
||
## Installing the Chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```bash | ||
$ helm install --name my-release stable/rookout --set token=YOUR_ORGANIZATIONAL_TOKEN | ||
``` | ||
|
||
The command deploys Rookout on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. | ||
|
||
> **Tip**: List all releases using `helm list` | ||
## Uninstalling the Chart | ||
|
||
To uninstall/delete the `my-release` deployment: | ||
|
||
```bash | ||
$ helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
## Configuration | ||
|
||
The following table lists the configurable parameters of the Rookout Router chart and their default values. | ||
|
||
| Parameter | Description | Default | | ||
| --------------------------------- | ---------------------------------------- | ------------------------------------------------------- | | ||
| `token` | Rookout organizational token | `Nil` You must provide your own token | | ||
| `tags` | Rookout Router tags | `Nil` You must provide your own token | | ||
| `listenAll` | Configuring the agent to listen on all addresses instead of only localhost. | `True` You must provide your own token | | ||
| `image.registry` | Rookout image registry | `docker.io` | | ||
| `image.repository` | Rookout image name | `rookout/agent` | | ||
| `image.tag` | Rookout image tag | `{VERSION}` | | ||
| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | ||
| `image.pullSecrets` | Specify image pull secrets | `nil` | | ||
|
||
|
||
The above parameters map to the env variables defined in [rookout/agent](https://docs.rookout.com/docs/agent.html). For more information please refer to the [rookout/agent](https://hub.docker.com/r/rookout/agent/) image documentation. | ||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, | ||
|
||
```bash | ||
$ helm install --name my-release \ | ||
--set token=YOUR_TOKEN_HERE,listenAll=False,tags=tag1;tag2;tag3 \ | ||
stable/rookout | ||
``` | ||
|
||
The above command sets the Rookout Router token to your organizational token. Additionally, it sets the listenAll to `False` and Router tags to `tag1;tag2;tag3`. | ||
|
||
> **Tip**: You can use the default [values.yaml](values.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,24 @@ | ||
{{- if .Values.rookout.token -}} | ||
Rookouts Routers are connection to Rookouts SDK (The Rook), you should see the status at Rookouts IDE. | ||
|
||
https://app.rookout.com/app/connectivity/agents | ||
|
||
No further action should be required. | ||
|
||
{{- else -}} | ||
############################################################################## | ||
#### ERROR: You did not set a token. #### | ||
############################################################################## | ||
|
||
This deployment will be incomplete until you get your token from Rookout. | ||
|
||
Once registered you can request an token at: | ||
|
||
http://rookout.com/ | ||
|
||
Then run: | ||
|
||
helm upgrade {{ .Release.Name }} \ | ||
--set token=YOUR-TOKEN-HERE stable/rookout | ||
{{- end }} | ||
|
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,32 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "rookout.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "rookout.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "rookout.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} |
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,41 @@ | ||
{{- if .Values.rookout.token }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "rookout.fullname" . }} | ||
labels: | ||
app: {{ template "rookout.name" . }} | ||
chart: {{ template "rookout.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: {{ template "rookout.name" . }} | ||
release: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ template "rookout.name" . }} | ||
release: {{ .Release.Name }} | ||
spec: | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
env: | ||
- name: ROOKOUT_TOKEN | ||
value: {{ .Values.token }} | ||
- name: ROOKOUT_LISTEN_ALL | ||
value: {{ .Values.listenAll }} | ||
- name: ROOKOUT_AGENT_TAGS | ||
value: {{ .Values.tags }} | ||
ports: | ||
- containerPort: 7486 | ||
livenessProbe: | ||
tcpSocket: | ||
port: 7486 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 20 | ||
{{- end -}} |
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,18 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ template "rookout.fullname" . }} | ||
labels: | ||
app: {{ template "rookout.name" . }} | ||
chart: {{ template "rookout.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
selector: | ||
app: {{ template "rookout.name" . }} | ||
release: {{ .Release.Name }} | ||
|
||
type: ClusterIP | ||
ports: | ||
- protocol: TCP | ||
port: 7486 |
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,20 @@ | ||
image: | ||
repository: rookout/agent | ||
tag: 0.2.3 | ||
pullPolicy: IfNotPresent | ||
|
||
service: | ||
type: ClusterIP | ||
|
||
listenAll: True | ||
tags: '' | ||
|
||
rookout: | ||
token: '' | ||
|
||
nodeSelector: {} | ||
|
||
tolerations: [] | ||
|
||
affinity: {} | ||
replicaCount: 1 |