-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for vSMP MemoryOne on Garden Linux
The necessary code and APIs for supporing vSMP MemoryOne was taken from the suse-chost extension which already had this support for several years. With this, the Garden Linux extension now understands a providerConfig and also registers for the type os/memoryone-gardenlinux.
- Loading branch information
1 parent
020f32d
commit 08824b2
Showing
32 changed files
with
1,238 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
49 changes: 49 additions & 0 deletions
49
example/40-operatingsystemconfig-memoryonegardenlinux.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
apiVersion: extensions.gardener.cloud/v1alpha1 | ||
kind: OperatingSystemConfig | ||
metadata: | ||
name: pool-02-original | ||
namespace: default | ||
spec: | ||
type: memoryone-gardenlinux | ||
units: | ||
- name: docker.service | ||
dropIns: | ||
- name: 10-docker-opts.conf | ||
content: | | ||
[Service] | ||
Environment="DOCKER_OPTS=--log-opt max-size=60m --log-opt max-file=3" | ||
- name: docker-monitor.service | ||
command: start | ||
enable: true | ||
content: | | ||
[Unit] | ||
Description=Docker-monitor daemon | ||
After=kubelet.service | ||
[Install] | ||
WantedBy=multi-user.target | ||
[Service] | ||
Restart=always | ||
EnvironmentFile=/etc/environment | ||
ExecStart=/opt/bin/health-monitor docker | ||
files: | ||
- path: /var/lib/example/file.txt | ||
permissions: 0644 | ||
encoding: b64 | ||
content: | ||
secretRef: | ||
name: example-file | ||
dataKey: file.txt | ||
- path: /etc/sysctl.d/99-k8s-general.conf | ||
permissions: 0644 | ||
content: | ||
inline: | ||
data: | | ||
# A higher vm.max_map_count is great for elasticsearch, mongo, or other mmap users | ||
# See https://github.com/kubernetes/kops/issues/1340 | ||
vm.max_map_count = 135217728 | ||
providerConfig: | ||
apiVersion: memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1 | ||
kind: OperatingSystemConfiguration | ||
memoryTopology: "3" | ||
systemMemory: "7x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"hideMemberFields": [ | ||
"TypeMeta" | ||
], | ||
"hideTypePatterns": [ | ||
"ParseError$", | ||
"List$" | ||
], | ||
"externalPackages": [ | ||
{ | ||
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/", | ||
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}" | ||
}, | ||
{ | ||
"typeMatchPrefix": "github.com/gardener/gardener/extensions/pkg/controller/healthcheck/config", | ||
"docsURLTemplate": "https://github.com/gardener/gardener/extensions/pkg/controller/healthcheck/config" | ||
} | ||
], | ||
"typeDisplayNamePrefixOverrides": { | ||
"k8s.io/api/": "Kubernetes ", | ||
"k8s.io/apimachinery/pkg/apis/": "Kubernetes " | ||
}, | ||
"markdownDisabled": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<p>Packages:</p> | ||
<ul> | ||
<li> | ||
<a href="#memoryone-gardenlinux.os.extensions.gardener.cloud%2fv1alpha1">memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1</a> | ||
</li> | ||
</ul> | ||
<h2 id="memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1">memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1</h2> | ||
<p> | ||
<p>Package v1alpha1 contains the v1alpha1 version of the API.</p> | ||
</p> | ||
Resource Types: | ||
<ul><li> | ||
<a href="#memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1.OperatingSystemConfiguration">OperatingSystemConfiguration</a> | ||
</li></ul> | ||
<h3 id="memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1.OperatingSystemConfiguration">OperatingSystemConfiguration | ||
</h3> | ||
<p> | ||
<p>OperatingSystemConfiguration allows to specify configuration for the operating system.</p> | ||
</p> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<code>apiVersion</code></br> | ||
string</td> | ||
<td> | ||
<code> | ||
memoryone-gardenlinux.os.extensions.gardener.cloud/v1alpha1 | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>kind</code></br> | ||
string | ||
</td> | ||
<td><code>OperatingSystemConfiguration</code></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>memoryTopology</code></br> | ||
<em> | ||
string | ||
</em> | ||
</td> | ||
<td> | ||
<em>(Optional)</em> | ||
<p>MemoryTopology allows to configure the <code>mem_topology</code> parameter. If not present, it will default to <code>2</code>.</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>systemMemory</code></br> | ||
<em> | ||
string | ||
</em> | ||
</td> | ||
<td> | ||
<em>(Optional)</em> | ||
<p>SystemMemory allows to configure the <code>system_memory</code> parameter. If not present, it will default to <code>6x</code>.</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<hr/> | ||
<p><em> | ||
Generated with <a href="https://github.com/ahmetb/gen-crd-api-reference-docs">gen-crd-api-reference-docs</a> | ||
</em></p> |
Oops, something went wrong.