Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding helm charts to install kspan #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/kspan-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v2
name: kspan-chart
version: 0.1.0
description: A Helm chart for deploying the kspan application
30 changes: 30 additions & 0 deletions config/kspan-chart/templates/manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: {{ .Release.Namespace }}
labels:
control-plane: controller-manager
spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
spec:
containers:
- command:
- /manager
args:
- --otlp-addr=otel-collector.default:4317
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
name: manager
resources:
limits: {{ .Values.resources.limits | toYaml | nindent 12 }}
requests: {{ .Values.resources.requests | toYaml | nindent 12 }}
terminationGracePeriodSeconds: 10
serviceAccountName: kspan
automountServiceAccountToken: true
27 changes: 27 additions & 0 deletions config/kspan-chart/templates/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kspan
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- "*"
resources:
- "*"
verbs:
- "*"

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kspan
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kspan
subjects:
- kind: ServiceAccount
name: kspan
namespace: {{ .Release.Namespace }}
12 changes: 12 additions & 0 deletions config/kspan-chart/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Default values for kspan-chart.
image:
repository: weaveworks/kspan
tag: main-12eefbe6

resources:
limits:
cpu: 100m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi