Skip to content

Commit

Permalink
feat: add service type for karpor server (#66)
Browse files Browse the repository at this point in the history
* feat: add service type for karpor server
  • Loading branch information
gshilei authored Nov 25, 2024
1 parent b375b0c commit 8efbd62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/karpor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: karpor
# The Chart Version
version: 0.6.11
version: 0.6.12
type: application
# The Application Version in the Chart
appVersion: 0.5.4
Expand Down
4 changes: 3 additions & 1 deletion charts/karpor/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Karpor Chart

![Version: 0.6.11](https://img.shields.io/badge/Version-0.6.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.4](https://img.shields.io/badge/AppVersion-0.5.4-informational?style=flat-square) [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/karpor)](https://artifacthub.io/packages/helm/kusionstack/karpor)
![Version: 0.6.12](https://img.shields.io/badge/Version-0.6.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.4](https://img.shields.io/badge/AppVersion-0.5.4-informational?style=flat-square) [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/karpor)](https://artifacthub.io/packages/helm/kusionstack/karpor)

A Helm chart for Karpor, a modern kubernetes visualization tool.

Expand Down Expand Up @@ -76,6 +76,8 @@ The Karpor Server Component is main backend server. It itself is an `apiserver`,
| server.port | int | `7443` | Port for karpor server. |
| server.replicas | int | `1` | The number of karpor server pods to run. |
| server.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | Resource limits and requests for the karpor server pods. |
| server.serviceType | string | `"ClusterIP"` | Service type for the karpor server. The available type values list as ["ClusterIP"、"NodePort"、"LoadBalancer"]. |


### Karpor Syncer

Expand Down
1 change: 1 addition & 0 deletions charts/karpor/templates/karpor-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
- port: {{ .Values.server.port }}
selector:
{{- include "karpor.selectorLabels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
type: {{ .Values.server.serviceType }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion charts/karpor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ server:
cpu: 500m
memory: 1Gi
ephemeral-storage: 10Gi

serviceType: ClusterIP

# Configuration for Karpor syncer
syncer:
Expand Down

0 comments on commit 8efbd62

Please sign in to comment.