Skip to content

Commit

Permalink
support gke (#117)
Browse files Browse the repository at this point in the history
* added resource quota

---------

Co-authored-by: tshafir <[email protected]>
  • Loading branch information
rkrmr33 and TalShafir authored Apr 18, 2024
1 parent 70c3bb1 commit 8ccd427
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/ocean-kubernetes-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ocean-kubernetes-controller
description: A Helm chart for Ocean Kubernetes Controller
type: application
version: 0.1.34
version: 0.1.35
appVersion: 2.0.53
kubeVersion: ">=1.20.0-0"
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/ocean-kubernetes-controller/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ocean-kubernetes-controller

![Version: 0.1.34](https://img.shields.io/badge/Version-0.1.34-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.53](https://img.shields.io/badge/AppVersion-2.0.53-informational?style=flat-square)
![Version: 0.1.35](https://img.shields.io/badge/Version-0.1.35-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.53](https://img.shields.io/badge/AppVersion-2.0.53-informational?style=flat-square)

A Helm chart for Ocean Kubernetes Controller.

Expand Down
19 changes: 19 additions & 0 deletions charts/ocean-kubernetes-controller/templates/resourcequota.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if and (ne .Release.Namespace "kube-system") .Values.resourceQuota.enabled }}
apiVersion: v1
kind: ResourceQuota
metadata:
name: {{ include "ocean-kubernetes-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "ocean-kubernetes-controller.labels" . | nindent 4 }}
spec:
hard:
pods: "1000"
scopeSelector:
matchExpressions:
- operator: In
scopeName: PriorityClass
values:
- system-node-critical
- system-cluster-critical
{{- end }}

0 comments on commit 8ccd427

Please sign in to comment.