Skip to content

Instantly share code, notes, and snippets.

@relyt0925
Last active April 27, 2021 02:21
Show Gist options
  • Save relyt0925/68fcacfff8ee05c2414c28c00ec65ea8 to your computer and use it in GitHub Desktop.
Save relyt0925/68fcacfff8ee05c2414c28c00ec65ea8 to your computer and use it in GitHub Desktop.
test-private-registry-pull-ds.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test-private-registry-pull-ds
spec:
selector:
matchLabels:
name: test-private-registry-pull-ds
template:
metadata:
labels:
name: test-private-registry-pull-ds
spec:
tolerations:
- operator: "Exists"
imagePullSecrets:
- name: docker-registry.default.svc.cluster.local-pull-secret
containers:
- image: docker-registry.default.svc.cluster.local:5000/openshift/httpd:2.4
imagePullPolicy: Always
name: test-pull
command:
- sh
- -c
- set -x; while true; do sleep 7000; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment