This commit is contained in:
37
ansible/windows/roles/runtimes/templates/config.toml
Normal file
37
ansible/windows/roles/runtimes/templates/config.toml
Normal file
@ -0,0 +1,37 @@
|
||||
# Copyright 2020 The Kubernetes Authors.
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
root = "{{ allusersprofile }}\\containerd\\root"
|
||||
state = "{{ allusersprofile }}\\containerd\\state"
|
||||
version = 2
|
||||
|
||||
{% if 'imports' not in containerd_additional_settings | b64decode %}
|
||||
imports = ["{{ containerd_conf_dir }}\\conf.d\\*.toml"]
|
||||
{% endif %}
|
||||
|
||||
[grpc]
|
||||
address = "\\\\.\\pipe\\containerd-containerd"
|
||||
|
||||
[plugins]
|
||||
[plugins."io.containerd.grpc.v1.cri"]
|
||||
sandbox_image = "{{ pause_image }}"
|
||||
[plugins."io.containerd.grpc.v1.cri".cni]
|
||||
bin_dir = "{{ plugin_bin_dir }}"
|
||||
conf_dir = "{{ plugin_conf_dir }}"
|
||||
{% if packer_builder_type.startswith('azure') %}
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.headers]
|
||||
X-Meta-Source-Client = ["azure/capz"]
|
||||
{% endif %}
|
||||
|
||||
{{containerd_additional_settings | b64decode}}
|
Reference in New Issue
Block a user