Skip to content

Commit

Permalink
Merge pull request #70 from steadybit/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Ben Blackmore authored Jul 31, 2022
2 parents 3d6d2df + 2f869e8 commit 5f48633
Show file tree
Hide file tree
Showing 10 changed files with 177 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/steadybit)](https://artifacthub.io/packages/search?repo=steadybit)

This repository hosts the source of the steadybit Kubernetes helm charts.
This repository hosts the source of the Steadybit Kubernetes helm charts.

Currently supported:

- [steadybit Agent](charts/steadybit-agent/README.md)
- [steadybit Platform](charts/steadybit-platform/README.md)
- [steadybit AWS extension](charts/steadybit-extension-aws/README.md)
- [steadybit Kong extension](charts/steadybit-extension-kong/README.md)

## How to use the steadybit Helm repository

Expand Down
2 changes: 1 addition & 1 deletion charts/steadybit-extension-aws/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-aws
description: Steadybit AWS extension Helm chart for Kubernetes.
version: 1.0.0
version: 1.0.1
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
2 changes: 1 addition & 1 deletion charts/steadybit-extension-aws/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image:
# image.name -- The container image to use for the steadybit AWS extension.
name: steadybit/extension-aws
# image.tag -- tag name of the extension-aws container image to use.
# See https://hub.docker.com/repository/docker/steadybit/extension-aws for all tags.
# See https://hub.docker.com/r/steadybit/extension-aws for all tags.
tag: latest
# image.pullPolicy -- Specifies when to pull the image container.
pullPolicy: Always
Expand Down
23 changes: 23 additions & 0 deletions charts/steadybit-extension-kong/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
21 changes: 21 additions & 0 deletions charts/steadybit-extension-kong/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: steadybit-extension-kong
description: Steadybit Kong extension Helm chart for Kubernetes.
version: 1.0.0
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
maintainers:
- email: [email protected]
name: bripkens
sources:
- https://github.com/steadybit/helm-charts
annotations:
artifacthub.io/images: |
- name: logo
image: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
artifacthub.io/links: |-
- name: steadybit website
url: https://www.steadybit.com
- name: steadybit Kubernetes Helm charts
url: https://github.com/steadybit/helm-charts
28 changes: 28 additions & 0 deletions charts/steadybit-extension-kong/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Steadybit Kong Extension

This Helm chart adds the Steadybit Kong extension to your Kubernetes cluster via a deployment.

## Quick Start

### Add Steadybit Helm repository

```
helm repo add steadybit https://steadybit.github.io/helm-charts
helm repo update
```

### Installing the Chart

To install the chart with the name `steadybit-extension-kong` and set the required configuration values.

```bash
$ helm upgrade steadybit-extension-kong \
--install \
--wait \
--timeout 5m0s \
--create-namespace \
--namespace steadybit-extension \
--set kong.name="dev" \
--set kong.origin="http://kong.example.com:8001" \
steadybit/steadybit-extension-kong
```
43 changes: 43 additions & 0 deletions charts/steadybit-extension-kong/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: steadybit-extension-kong
namespace: {{ .Release.Namespace }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: steadybit-extension-kong
template:
metadata:
labels:
app.kubernetes.io/name: steadybit-extension-kong
spec:
containers:
- image: {{ .Values.image.name }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: steadybit-extension-kong
resources:
requests:
memory: {{ .Values.resources.requests.memory }}
cpu: {{ .Values.resources.requests.cpu }}
limits:
memory: {{ .Values.resources.limits.memory }}
cpu: {{ .Values.resources.limits.cpu }}
env:
- name: STEADYBIT_EXTENSION_KONG_INSTANCE_0_NAME
value: {{ .Values.kong.name | quote }}
- name: STEADYBIT_EXTENSION_KONG_INSTANCE_0_ORIGIN
value: {{ .Values.kong.origin | quote }}
{{- if and (.Values.kong.headerKey) (.Values.kong.headerValue) }}
- name: STEADYBIT_EXTENSION_KONG_INSTANCE_0_HEADER_KEY
valueFrom:
secretKeyRef:
name: steadybit-extension-kong-header
key: key
- name: STEADYBIT_EXTENSION_KONG_INSTANCE_0_HEADER_VALUE
valueFrom:
secretKeyRef:
name: steadybit-extension-kong-header
key: value
{{- end }}
11 changes: 11 additions & 0 deletions charts/steadybit-extension-kong/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if and (.Values.kong.headerKey) (.Values.kong.headerValue) -}}
apiVersion: v1
kind: Secret
metadata:
name: steadybit-extension-kong-header
namespace: {{ .Release.Namespace }}
type: Opaque
data:
key: {{ .Values.kong.headerKey | b64enc | quote }}
value: {{ .Values.kong.headerValue | b64enc | quote }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/steadybit-extension-kong/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: steadybit-extension-kong
namespace: {{ .Release.Namespace }}
spec:
selector:
app.kubernetes.io/name: steadybit-extension-kong
ports:
- protocol: TCP
port: 8084
targetPort: 8084
34 changes: 34 additions & 0 deletions charts/steadybit-extension-kong/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Default values for steadybit-extension-kong.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

kong:
# kong.name -- An alias/label for the Kong instance. Will be presented in Steadybit's user interface.
name: null
# kong.origin -- Origin under which the Kong admin endpoint is available, e.g., http://kong.example.com:8001,
origin: null
# kong.headerKey -- Optional header key which will be transmitted to the Kong instance. Can be used for authentication purposes
headerKey: null
# kong.headerValue -- Optional header value which will be transmitted to the Kong instance. Can be used for authentication purposes
headerValue: null

image:
# image.name -- The container image to use for the steadybit Kong extension.
name: steadybit/extension-kong
# image.tag -- tag name of the extension-kong container image to use.
# See https://hub.docker.com/r/steadybit/extension-kong for all tags.
tag: latest
# image.pullPolicy -- Specifies when to pull the image container.
pullPolicy: Always

resources:
requests:
# resources.requests.memory -- The minimal amount of memory needed
memory: "64Mi"
# resources.requests.cpu -- The minimal amount of cpu shares needed
cpu: "50m"
limits:
# resources.limits.memory -- The limit of memory to be used
memory: "128Mi"
# resources.limits.cpu -- The limit of cpu share to be used during its interval
cpu: "200m"

0 comments on commit 5f48633

Please sign in to comment.