Skip to content

Commit 6af33c3

Browse files
songkang7宋康
and
宋康
authored
kruise game 0.9.0 (#113)
Signed-off-by: 宋康 <[email protected]> Co-authored-by: 宋康 <[email protected]>
1 parent 5e41bbd commit 6af33c3

15 files changed

+2684
-1
lines changed

charts/kruise-game

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

versions/kruise-game/0.9/.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.9/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.9.0
5+
appVersion: 0.9.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.9/README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Kruise Game v0.9.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.9.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,99 @@
1+
{{- if .Values.cloudProvider.installCRD }}
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.9.0
7+
creationTimestamp: null
8+
name: poddnats.alibabacloud.com
9+
spec:
10+
group: alibabacloud.com
11+
names:
12+
kind: PodDNAT
13+
listKind: PodDNATList
14+
plural: poddnats
15+
singular: poddnat
16+
scope: Namespaced
17+
versions:
18+
- name: v1beta1
19+
schema:
20+
openAPIV3Schema:
21+
description: PodDNAT is the Schema for the poddnats API
22+
properties:
23+
apiVersion:
24+
description: 'APIVersion defines the versioned schema of this representation
25+
of an object. Servers should convert recognized schemas to the latest
26+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
27+
type: string
28+
kind:
29+
description: 'Kind is a string value representing the REST resource this
30+
object represents. Servers may infer this from the endpoint the client
31+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
32+
type: string
33+
metadata:
34+
type: object
35+
spec:
36+
description: PodDNATSpec defines the desired state of PodDNAT
37+
properties:
38+
eni:
39+
type: string
40+
entryId:
41+
type: string
42+
externalIP:
43+
type: string
44+
externalPort:
45+
type: string
46+
internalIP:
47+
type: string
48+
internalPort:
49+
type: string
50+
portMapping:
51+
items:
52+
properties:
53+
externalPort:
54+
type: string
55+
internalPort:
56+
type: string
57+
type: object
58+
type: array
59+
protocol:
60+
type: string
61+
tableId:
62+
type: string
63+
vswitch:
64+
type: string
65+
zoneID:
66+
type: string
67+
type: object
68+
status:
69+
description: PodDNATStatus defines the observed state of PodDNAT
70+
properties:
71+
created:
72+
description: created create status
73+
type: string
74+
entries:
75+
description: entries
76+
items:
77+
description: Entry record for forwardEntry
78+
properties:
79+
externalIP:
80+
type: string
81+
externalPort:
82+
type: string
83+
forwardEntryId:
84+
type: string
85+
internalIP:
86+
type: string
87+
internalPort:
88+
type: string
89+
ipProtocol:
90+
type: string
91+
type: object
92+
type: array
93+
type: object
94+
type: object
95+
served: true
96+
storage: true
97+
subresources:
98+
status: {}
99+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
[alibabacloud.nlb]
20+
max_port = 1500
21+
min_port = 1000
22+
23+
[volcengine]
24+
enable = true
25+
[volcengine.clb]
26+
max_port = 700
27+
min_port = 500
28+
29+
[aws]
30+
enable = false
31+
[aws.nlb]
32+
max_port = 30050
33+
min_port = 30001
34+
controller_manager_config.yaml: |
35+
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
36+
kind: ControllerManagerConfig
37+
health:
38+
healthProbeBindAddress: :8081
39+
metrics:
40+
bindAddress: 127.0.0.1:8080
41+
webhook:
42+
port: 9443
43+
leaderElection:
44+
leaderElect: true
45+
resourceName: c637bb1e.my.domain
46+
# leaderElectionReleaseOnCancel defines if the leader should step down volume
47+
# when the Manager ends. This requires the binary to immediately end when the
48+
# Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
49+
# speeds up voluntary leader transitions as the new leader don't have to wait
50+
# LeaseDuration time first.
51+
# In the default scaffold provided, the program ends immediately after
52+
# the manager stops, so would be fine to enable this option. However,
53+
# if you are doing or is intended to do any operation such as perform cleanups
54+
# after the manager stops then its usage might be unsafe.
55+
# leaderElectionReleaseOnCancel: true
56+
57+

0 commit comments

Comments
 (0)