Comment 1 for bug 1882152

Revision history for this message
Joseph Borg (joeborg) wrote :

***config.toml***
    [plugins.cri.registry]
      [plugins.cri.registry.mirrors]
        [plugins.cri.registry.mirrors."docker.io"]
          endpoint = ["https://registry-1.docker.io"]
        [plugins.cri.registry.mirrors."34.235.169.214:5000"]
          endpoint = ["http://34.235.169.214:5000"]
      [plugins.cri.registry.auths]
        [plugins.cri.registry.auths."34.235.169.214:5000"]
          username = "admin"
          password = "password"

*** pod.yaml ***
apiVersion: v1
kind: Pod
metadata:
  name: test
  namespace: default
spec:
  containers:
  - name: test
    image: 34.235.169.214:5000/nginx:latest

*** describe pod ***
Events:
  Type Reason Age From Message
  ---- ------ ---- ---- -------
  Normal Scheduled <unknown> default-scheduler Successfully assigned default/test to ip-172-31-17-195
  Normal Pulling 10m kubelet, ip-172-31-17-195 Pulling image "34.235.169.214:5000/nginx:latest"
  Normal Pulled 10m kubelet, ip-172-31-17-195 Successfully pulled image "34.235.169.214:5000/nginx:latest"
  Normal Created 10m kubelet, ip-172-31-17-195 Created container test
  Normal Started 10m kubelet, ip-172-31-17-195 Started container test