Skip to content

Commit 911f3b5

Browse files
Add a basic helm chart
1 parent 2e8aec5 commit 911f3b5

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

charts/octo/Chart.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
name: octo
3+
description: octo-proxy is a simple TCP/TLS proxy with mTLS
4+
version: 0.0.1
5+
appVersion: 0.0.1

charts/octo/templates/configmap.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ .Release.Name }}
5+
data:
6+
config.yaml: {{ toYaml .Values.config | indent 2 }}

charts/octo/templates/deployment.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ .Release.Name }}
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: {{ .Release.Name }}
10+
template:
11+
metadata:
12+
labels:
13+
app: {{ .Release.Name }}
14+
spec:
15+
containers:
16+
- name: octo
17+
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
18+
imagePullPolicy: {{ .Values.image.pullPolicy }}
19+
volumeMounts:
20+
- name: octo-config
21+
mountPath: /etc/octo
22+
readOnly: true
23+
command: ["/usr/local/bin/octo", "-config", "/etc/octo/config.yaml"]
24+
volumes:
25+
- name: octo-config
26+
configMap:
27+
name: {{ .Release.Name }}

charts/octo/templates/service.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ .Release.Name }}
5+
spec:
6+
type: ClusterIP
7+
selector:
8+
app: {{ .Release.Name }}
9+
ports:
10+
{{- range .Values.ports }}
11+
- port: {{ .port }}
12+
targetPort: {{ .targetPort }}
13+
protocol: {{ .protocol }}
14+
name: {{ .name }}
15+
{{- end }}

charts/octo/values.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
image:
2+
repository: octo
3+
tag: 0.0.1
4+
pullPolicy: IfNotPresent
5+
6+
ports:
7+
- name: http
8+
port: 80
9+
targetPort: 8080
10+
11+
config: |
12+
servers:
13+
- name: web-proxy
14+
listener:
15+
host: 127.0.0.1
16+
port: 8080
17+
targets:
18+
- host: 127.0.0.1
19+
port: 80

0 commit comments

Comments
 (0)