-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10540 from hakman/flatcar-containerd-config
Add containerd config file to Flatcar based instances
- Loading branch information
Showing
4 changed files
with
120 additions
and
40 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
39 changes: 39 additions & 0 deletions
39
nodeup/pkg/model/tests/containerdbuilder/flatcar/cluster.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,39 @@ | ||
apiVersion: kops.k8s.io/v1alpha2 | ||
kind: Cluster | ||
metadata: | ||
name: minimal.example.com | ||
spec: | ||
kubernetesApiAccess: | ||
- 0.0.0.0/0 | ||
channel: stable | ||
cloudProvider: aws | ||
configBase: memfs://clusters.example.com/minimal.example.com | ||
containerRuntime: containerd | ||
containerd: | ||
version: 1.4.3 | ||
etcdClusters: | ||
- etcdMembers: | ||
- instanceGroup: master-us-test-1a | ||
name: master-us-test-1a | ||
name: main | ||
- etcdMembers: | ||
- instanceGroup: master-us-test-1a | ||
name: master-us-test-1a | ||
name: events | ||
kubernetesVersion: v1.19.0 | ||
masterInternalName: api.internal.minimal.example.com | ||
masterPublicName: api.minimal.example.com | ||
networkCIDR: 172.20.0.0/16 | ||
networking: | ||
kubenet: {} | ||
nonMasqueradeCIDR: 100.64.0.0/10 | ||
sshAccess: | ||
- 0.0.0.0/0 | ||
topology: | ||
masters: public | ||
nodes: public | ||
subnets: | ||
- cidr: 172.20.32.0/19 | ||
name: us-test-1a | ||
type: Public | ||
zone: us-test-1a |
20 changes: 20 additions & 0 deletions
20
nodeup/pkg/model/tests/containerdbuilder/flatcar/tasks.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,20 @@ | ||
contents: "" | ||
path: /etc/containerd/config-kops.toml | ||
type: file | ||
--- | ||
contents: |- | ||
[Service] | ||
Environment=CONTAINERD_CONFIG=/etc/containerd/config-kops.toml | ||
EnvironmentFile=/etc/environment | ||
onChangeExecute: | ||
- - systemctl | ||
- daemon-reload | ||
- - systemctl | ||
- restart | ||
- containerd.service | ||
- - systemctl | ||
- restart | ||
- kops-configuration.service | ||
- '&' | ||
path: /etc/systemd/system/containerd.service.d/10-kops.conf | ||
type: file |