Skip to content

Commit 083a43c

Browse files
songkang7宋康
and
宋康
authored
kruise game 0.10.0 (#129)
Signed-off-by: 宋康 <[email protected]> Co-authored-by: 宋康 <[email protected]>
1 parent 4d538cf commit 083a43c

15 files changed

+2642
-2
lines changed

.github/workflows/lint-and-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.7
20+
python-version: 3.x
2121

2222
- name: Setup Chart Linting
2323
id: lint

charts/kruise-game

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../versions/kruise-game/0.9
1+
../versions/kruise-game/0.10

versions/kruise-game/0.10/.helmignore

+23
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/

versions/kruise-game/0.10/Chart.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
name: kruise-game
3+
description: Helm chart for kruise-game components
4+
version: 0.10.0
5+
appVersion: 0.10.0
6+
kubeVersion: ">= 1.16.0-0"
7+
sources:
8+
- https://github.com/openkruise/kruise-game
9+
annotations:
10+
artifacthub.io/changes: |
11+
- "[Changed]: https://github.com/openkruise/kruise-game/blob/master/CHANGELOG.md"

versions/kruise-game/0.10/README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Kruise Game v0.10.0
2+
3+
## Configuration
4+
5+
The following table lists the configurable parameters of the kruise-game chart and their default values.
6+
7+
| Parameter | Description | Default |
8+
|----------------------------------|-----------------------------------------------------------------------------|----------------------------------|
9+
| `installation.namespace` | Namespace for kruise-game operation installation | `kruise-game-system` |
10+
| `installation.createNamespace` | Whether to create the installation.namespace | `true` |
11+
| `kruiseGame.fullname` | Nick name for kruise-game deployment and other configurations | `kruise-game-controller-manager` |
12+
| `kruiseGame.healthBindPort` | Port for checking health of kruise-game container | `8082` |
13+
| `kruiseGame.webhook.port` | Port of webhook served by kruise-game container | `443` |
14+
| `kruiseGame.webhook.targetPort` | ObjectSelector for workloads in MutatingWebhookConfigurations | `9876` |
15+
| `kruiseGame.apiServerQps` | Indicates the maximum QPS to the master from kruise-game-controller-manager | `5` |
16+
| `kruiseGame.apiServerQpsBurst` | Maximum burst for throttle of kruise-game-controller-manager | `10` |
17+
| `replicaCount` | Replicas of kruise-game deployment | `1` |
18+
| `image.repository` | Repository for kruise-game image | `openkruise/kruise-game-manager` |
19+
| `image.tag` | Tag for kruise-game image | `v0.10.0` |
20+
| `image.pullPolicy` | ImagePullPolicy for kruise-game container | `Always` |
21+
| `serviceAccount.annotations` | The annotations for serviceAccount of kruise-game | ` ` |
22+
| `service.port` | Port of kruise-game service | `8443` |
23+
| `resources.limits.cpu` | CPU resource limit of kruise-game container | `500m` |
24+
| `resources.limits.memory` | Memory resource limit of kruise-game container | `1Gi` |
25+
| `resources.requests.cpu` | CPU resource request of kruise-game container | `10m` |
26+
| `resources.requests.memory` | Memory resource request of kruise-game container | `64Mi` |
27+
| `prometheus.enabled` | Whether to bind metric endpoint | `true` |
28+
| `prometheus.monitorService.port` | Port of the monitorservice bind to | `8080` |
29+
| `scale.service.port` | Port of the external scaler server binds to | `6000` |
30+
| `scale.service.targetPort` | TargetPort of the external scaler server binds to | `6000` |
31+
| `network.totalWaitTime` | Maximum time to wait for network ready, the unit is seconds | `60` |
32+
| `network.probeIntervalTime` | Time interval for detecting network status, the unit is seconds | `5` |
33+
| `cloudProvider.installCRD` | Whether to install CloudProvider CRD | `true` |
34+
35+
36+
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
37+
38+
### Optional: the local image for China
39+
40+
If you are in China and have problem to pull image from official DockerHub, you can use the registry hosted on Alibaba Cloud:
41+
42+
```bash
43+
$ helm install kruise-game https://... --set image.repository=registry.cn-hangzhou.aliyuncs.com/acs/kruise-game-manager
44+
...
45+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "kruise-game.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "kruise-game.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "kruise-game.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "kruise-game.labels" -}}
37+
helm.sh/chart: {{ include "kruise-game.chart" . }}
38+
{{ include "kruise-game.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "kruise-game.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "kruise-game.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "kruise-game.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "kruise-game.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: kruise-game-manager-config
5+
namespace: {{ .Values.installation.namespace }}
6+
data:
7+
config.toml: |
8+
[kubernetes]
9+
enable = true
10+
[kubernetes.hostPort]
11+
max_port = 9000
12+
min_port = 8000
13+
14+
[alibabacloud]
15+
enable = true
16+
[alibabacloud.slb]
17+
max_port = 700
18+
min_port = 500
19+
block_ports = [593]
20+
[alibabacloud.nlb]
21+
max_port = 1502
22+
min_port = 1000
23+
block_ports = [1025, 1434, 1068]
24+
25+
[volcengine]
26+
enable = true
27+
[volcengine.clb]
28+
max_port = 600
29+
min_port = 550
30+
block_ports = [593]
31+
32+
[aws]
33+
enable = false
34+
[aws.nlb]
35+
max_port = 30050
36+
min_port = 30001
37+
38+
[jdcloud]
39+
enable = false
40+
[jdcloud.nlb]
41+
max_port = 700
42+
min_port = 500
43+
44+
[tencentcloud]
45+
enable = true
46+
[tencentcloud.clb]
47+
min_port = 700
48+
max_port = 750
49+
controller_manager_config.yaml: |
50+
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
51+
kind: ControllerManagerConfig
52+
health:
53+
healthProbeBindAddress: :8081
54+
metrics:
55+
bindAddress: 127.0.0.1:8080
56+
webhook:
57+
port: 9443
58+
leaderElection:
59+
leaderElect: true
60+
resourceName: c637bb1e.my.domain
61+
# leaderElectionReleaseOnCancel defines if the leader should step down volume
62+
# when the Manager ends. This requires the binary to immediately end when the
63+
# Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
64+
# speeds up voluntary leader transitions as the new leader don't have to wait
65+
# LeaseDuration time first.
66+
# In the default scaffold provided, the program ends immediately after
67+
# the manager stops, so would be fine to enable this option. However,
68+
# if you are doing or is intended to do any operation such as perform cleanups
69+
# after the manager stops then its usage might be unsafe.
70+
# leaderElectionReleaseOnCancel: true
71+
72+

0 commit comments

Comments
 (0)