Skip to content

Commit d52bca4

Browse files
committed
Signadot Operator v0.8.0
1 parent 4159766 commit d52bca4

33 files changed

+1762
-0
lines changed

signadot/operator/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.swp

signadot/operator/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

signadot/operator/Chart.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v2
2+
name: operator
3+
description: In-cluster components for Signadot
4+
type: application
5+
6+
# This is the chart version. This version number should be incremented each time you make changes
7+
# to the chart and its templates, including the app version.
8+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9+
version: "0.8.0"
10+
11+
# This is the version number of the application being deployed. This version number should be
12+
# incremented each time you make changes to the application. Versions are not expected to
13+
# follow Semantic Versioning. They should reflect the version the application is using.
14+
# It is recommended to use it with quotes.
15+
appVersion: "0.8.0"

signadot/operator/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Signadot Operator
2+
3+
This chart installs Signadot Operator, which consists of the in-cluster
4+
components for Signadot.
5+
6+
## Installation
7+
8+
```sh
9+
# Create signadot namespace
10+
kubectl create ns signadot
11+
12+
# Install
13+
helm repo add signadot https://charts.signadot.com
14+
helm install signadot-operator signadot/operator
15+
16+
# Upgrade
17+
helm repo update
18+
helm upgrade signadot-operator signadot/operator
19+
20+
# Uninstall
21+
helm uninstall signadot-operator
22+
23+
# Remove signadot namespace
24+
kubectl delete ns signadot
25+
```
26+
27+
## Cluster Registration
28+
29+
In addition to installing this chart, the cluster must also be registered
30+
in the [Signadot dashboard](https://app.signadot.com).
31+
32+
After generating a cluster token, complete the registration by populating a Secret
33+
called `cluster-agent` in the `signadot` namespace:
34+
35+
```sh
36+
# Replace "..." with the token value.
37+
kubectl -n signadot create secret generic cluster-agent --from-literal=token=...
38+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{ if not .Values.disableAgent }}
2+
3+
Please visit https://app.signadot.com to register this cluster and create a cluster token.
4+
5+
Then populate the cluster token in a Secret by running the following command
6+
with "..." replaced by the token value.
7+
8+
kubectl -n signadot create secret generic cluster-agent --from-literal=token=...
9+
10+
{{ end }}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This file is generated. Do not edit.
2+
{{ if not .Values.disableAgent }}
3+
apiVersion: apps/v1
4+
kind: Deployment
5+
metadata:
6+
annotations:
7+
{{- range $key, $val := .Values.commonAnnotations }}
8+
{{ $key | quote }}: {{ $val | quote }}
9+
{{- end }}
10+
labels:
11+
{{- range $key, $val := .Values.commonLabels }}
12+
{{ $key | quote }}: {{ $val | quote }}
13+
{{- end }}
14+
name: agent
15+
namespace: signadot
16+
spec:
17+
replicas: 1
18+
selector:
19+
matchLabels:
20+
app: signadot-agent
21+
template:
22+
metadata:
23+
annotations:
24+
{{- range $key, $val := .Values.commonAnnotations }}
25+
{{ $key | quote }}: {{ $val | quote }}
26+
{{- end }}
27+
{{- range $key, $val := .Values.podAnnotations }}
28+
{{ $key | quote }}: {{ $val | quote }}
29+
{{- end }}
30+
labels:
31+
app: signadot-agent
32+
sidecar.istio.io/inject: "true"
33+
{{- range $key, $val := .Values.commonLabels }}
34+
{{ $key | quote }}: {{ $val | quote }}
35+
{{- end }}
36+
{{- range $key, $val := .Values.podLabels }}
37+
{{ $key | quote }}: {{ $val | quote }}
38+
{{- end }}
39+
spec:
40+
containers:
41+
- args:
42+
- --agent-token=$(AGENT_TOKEN)
43+
- --api-url=https://api.signadot.com
44+
- --tunnel-addr=tunnel.signadot.com:443
45+
env:
46+
- name: AGENT_TOKEN
47+
valueFrom:
48+
secretKeyRef:
49+
key: token
50+
name: cluster-agent
51+
image: {{ with .Values.agent }}{{ .image | default "signadot/agent:v0.8.0" | quote }}{{ else }}signadot/agent:v0.8.0{{ end }}
52+
imagePullPolicy: {{ with .Values.agent }}{{ .imagePullPolicy | default "IfNotPresent" | quote }}{{ else }}IfNotPresent{{ end }}
53+
livenessProbe:
54+
httpGet:
55+
path: /nullz
56+
port: 8088
57+
name: agent
58+
ports:
59+
- containerPort: 8088
60+
readinessProbe:
61+
httpGet:
62+
path: /healthz
63+
port: 8088
64+
serviceAccountName: agent
65+
{{ end }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is generated. Do not edit.
2+
{{ if not .Values.disableAgent }}
3+
apiVersion: v1
4+
kind: ServiceAccount
5+
metadata:
6+
annotations:
7+
{{- range $key, $val := .Values.commonAnnotations }}
8+
{{ $key | quote }}: {{ $val | quote }}
9+
{{- end }}
10+
labels:
11+
{{- range $key, $val := .Values.commonLabels }}
12+
{{ $key | quote }}: {{ $val | quote }}
13+
{{- end }}
14+
name: agent
15+
namespace: signadot
16+
{{ end }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This file is generated. Do not edit.
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
annotations:
6+
{{- range $key, $val := .Values.commonAnnotations }}
7+
{{ $key | quote }}: {{ $val | quote }}
8+
{{- end }}
9+
labels:
10+
{{- range $key, $val := .Values.commonLabels }}
11+
{{ $key | quote }}: {{ $val | quote }}
12+
{{- end }}
13+
name: routeserver
14+
namespace: signadot
15+
spec:
16+
replicas: 1
17+
selector:
18+
matchLabels:
19+
app: routeserver
20+
template:
21+
metadata:
22+
annotations:
23+
{{- range $key, $val := .Values.commonAnnotations }}
24+
{{ $key | quote }}: {{ $val | quote }}
25+
{{- end }}
26+
{{- range $key, $val := .Values.podAnnotations }}
27+
{{ $key | quote }}: {{ $val | quote }}
28+
{{- end }}
29+
labels:
30+
app: routeserver
31+
{{- range $key, $val := .Values.commonLabels }}
32+
{{ $key | quote }}: {{ $val | quote }}
33+
{{- end }}
34+
{{- range $key, $val := .Values.podLabels }}
35+
{{ $key | quote }}: {{ $val | quote }}
36+
{{- end }}
37+
spec:
38+
containers:
39+
- image: {{ with .Values.routeServer }}{{ .image | default "signadot/route-server:v0.8.0" | quote }}{{ else }}signadot/route-server:v0.8.0{{ end }}
40+
imagePullPolicy: {{ with .Values.routeServer }}{{ .imagePullPolicy | default "IfNotPresent" | quote }}{{ else }}IfNotPresent{{ end }}
41+
name: routeserver
42+
ports:
43+
- containerPort: 8080
44+
serviceAccountName: routeserver
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is generated. Do not edit.
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
annotations:
6+
{{- range $key, $val := .Values.commonAnnotations }}
7+
{{ $key | quote }}: {{ $val | quote }}
8+
{{- end }}
9+
{{- range $key, $val := .Values.serviceAnnotations }}
10+
{{ $key | quote }}: {{ $val | quote }}
11+
{{- end }}
12+
labels:
13+
{{- range $key, $val := .Values.commonLabels }}
14+
{{ $key | quote }}: {{ $val | quote }}
15+
{{- end }}
16+
{{- range $key, $val := .Values.serviceLabels }}
17+
{{ $key | quote }}: {{ $val | quote }}
18+
{{- end }}
19+
name: routeserver
20+
namespace: signadot
21+
spec:
22+
ports:
23+
- port: 8080
24+
selector:
25+
app: routeserver
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is generated. Do not edit.
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
annotations:
6+
{{- range $key, $val := .Values.commonAnnotations }}
7+
{{ $key | quote }}: {{ $val | quote }}
8+
{{- end }}
9+
labels:
10+
{{- range $key, $val := .Values.commonLabels }}
11+
{{ $key | quote }}: {{ $val | quote }}
12+
{{- end }}
13+
name: routeserver
14+
namespace: signadot

0 commit comments

Comments
 (0)