cri:
  # support: systemd, cgroupfs
  cgroup_driver: systemd
  sandbox_image: |
    {{ .k8s_registry }}/pause:3.5
  # support: containerd,docker,crio
  container_manager: docker
  # the endpoint of containerd
  cri_socket: |
    {{- if .cri.container_manager | eq "containerd" }}
    unix:///var/run/containerd.sock
    {{- end }}
#  containerd:
#    data_root: /var/lib/containerd
  docker:
    data_root: /var/lib/docker
  registry:
    mirrors: ["https://registry-1.docker.io"]
    insecure_registries: []
    auths: []

image_registry:
  #  ha_vip: 192.168.122.59
  auth:
    registry: |
      {{- if and .image_registry.ha_vip (ne .image_registry.ha_vip "") }}
      {{ .image_registry.ha_vip }}
      {{- else }}
      {{ index .inventory_hosts (.groups.image_registry | default list | first) "internal_ipv4" }}
      {{- end }}
    username: admin
    password: Harbor12345
