Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #717 from Random-Liu/enable-tls-streaming
Browse files Browse the repository at this point in the history
Enable TLS streaming in all the setup.
  • Loading branch information
Random-Liu authored Apr 3, 2018
2 parents 6e13a4d + ad7bffc commit 2bc72b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster/gce/cloud-init/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ write_files:
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
[plugins.cri]
enable_tls_streaming = true
[plugins.cri.cni]
bin_dir = "/home/containerd/opt/cni/bin"
conf_dir = "/home/containerd/etc/cni/net.d"
Expand Down
2 changes: 2 additions & 0 deletions cluster/gce/cloud-init/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ write_files:
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
[plugins.cri]
enable_tls_streaming = true
[plugins.cri.cni]
bin_dir = "/home/kubernetes/bin"
conf_dir = "/etc/cni/net.d"
Expand Down
8 changes: 8 additions & 0 deletions contrib/ansible/cri-containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
- name: "Create a directory for containerd config"
file: path=/etc/containerd state=directory

- name: "Add containerd config file"
blockinfile:
path: /etc/containerd/config.toml
create: yes
block: |
[plugins.cri]
enable_tls_streaming = true
- name: "Start Containerd"
systemd: name=containerd daemon_reload=yes state=started enabled=yes

Expand Down
3 changes: 3 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ The explanation and default value of each configuration item are as follows:
# systemd_cgroup enables systemd cgroup support.
systemd_cgroup = false

# enable_tls_streaming enables the TLS streaming support.
enable_tls_streaming = false

# "plugins.cri.containerd" contains config related to containerd
[plugins.cri.containerd]

Expand Down
2 changes: 2 additions & 0 deletions test/e2e_node/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ write_files:
shim = "/home/containerd/usr/local/bin/containerd-shim"
runtime = "/home/containerd/usr/local/sbin/runc"
[plugins.cri]
enable_tls_streaming = true
[plugins.cri.cni]
bin_dir = "/home/containerd/opt/cni/bin"
conf_dir = "/home/containerd/etc/cni/net.d"
Expand Down

0 comments on commit 2bc72b6

Please sign in to comment.