ubuntu.yaml 467 B

123456789101112131415161718192021222324
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: ubuntu
  5. labels:
  6. app: ubuntu
  7. spec:
  8. affinity:
  9. nodeAffinity:
  10. requiredDuringSchedulingIgnoredDuringExecution:
  11. nodeSelectorTerms:
  12. - matchExpressions:
  13. - key: kubernetes.io/hostname
  14. operator: In
  15. values:
  16. - dvd.dodges.it
  17. containers:
  18. - image: ubuntu:latest
  19. imagePullPolicy: "Always"
  20. command:
  21. - "sleep"
  22. - "604800"
  23. name: ubuntu