Skip to content

Commit

Permalink
fixed watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
musoles committed Sep 19, 2024
1 parent dcd5cfb commit 51b6aa3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/kalavai-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.3
version: 0.1.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/kalavai-watcher/templates/cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: api-cluster-role
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
Expand Down
2 changes: 1 addition & 1 deletion charts/kalavai-watcher/templates/cluster_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterRoleBinding
metadata:
name: api-cluster-role-binding
subjects:
- namespace: {{ .Values.namespace }}
- namespace: {{ .Release.Namespace }}
kind: ServiceAccount
name: api-service-account
roleRef:
Expand Down
6 changes: 3 additions & 3 deletions charts/kalavai-watcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-watcher-api
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
spec:
replicas: 1 # ensure there is minimal downtime if node goes down
selector:
Expand All @@ -21,9 +21,9 @@ spec:
- containerPort: 8000
env:
- name: IN_CLUSTER
value: {{ .Values.deployment.in_cluster }}
value: "{{ .Values.deployment.in_cluster }}"
- name: KW_USE_AUTH
value: {{ .Values.deployment.use_auth_key }}
value: "{{ .Values.deployment.use_auth_key }}"
- name: KW_MASTER_KEY
value: {{ .Values.deployment.auth_key }}
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion charts/kalavai-watcher/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: kube-watcher-service
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
spec:
type: NodePort
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/kalavai-watcher/templates/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: api-service-account
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
2 changes: 0 additions & 2 deletions charts/kalavai-watcher/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
namespace: kalavai

deployment:
in_cluster: "True"
use_auth_key: "True"
Expand Down

0 comments on commit 51b6aa3

Please sign in to comment.