-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from steadybit/develop
Release
- Loading branch information
Showing
10 changed files
with
177 additions
and
3 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
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
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
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,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/ |
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 @@ | ||
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 |
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,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 | ||
``` |
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,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 }} |
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,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 }} |
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,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 |
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,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" |