Guest User

Untitled

a guest
Jan 22nd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. # Default values for sonatype-nexus-apt.
  2. # This is a YAML-formatted file.
  3. # Declare variables to be passed into your templates.
  4.  
  5. replicaCount: 1
  6.  
  7. image:
  8. repository: nginx
  9. tag: stable
  10. pullPolicy: IfNotPresent
  11.  
  12. service:
  13. type: ClusterIP
  14. port: 80
  15.  
  16. ingress:
  17. enabled: false
  18. annotations: {}
  19. # kubernetes.io/ingress.class: nginx
  20. # kubernetes.io/tls-acme: "true"
  21. path: /
  22. hosts:
  23. - chart-example.local
  24. tls: []
  25. # - secretName: chart-example-tls
  26. # hosts:
  27. # - chart-example.local
  28.  
  29. resources: {}
  30. # We usually recommend not to specify default resources and to leave this as a conscious
  31. # choice for the user. This also increases chances charts run on environments with little
  32. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  33. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  34. # limits:
  35. # cpu: 100m
  36. # memory: 128Mi
  37. # requests:
  38. # cpu: 100m
  39. # memory: 128Mi
  40.  
  41. nodeSelector: {}
  42.  
  43. tolerations: []
  44.  
  45. affinity: {}
  46.  
  47. imageCredentials:
  48. name: credentials-name
  49. registry: private-docker-registry
  50. username: user
  51. password: pass
  52.  
  53. {{- define "imagePullSecret" }}
  54. {{- printf "{"auths": {"%s": {"auth": "%s"}}}" .Values.imageCredentials.registry (printf "%s:%s" .Values.imageCredentials.username .Values.imageCredentials.password | b64enc) | b64enc }}
  55. {{- end }}
  56.  
  57. apiVersion: v1
  58. kind: Secret
  59. metadata:
  60. name: {{ .Values.imageCredentials.name }}
  61. type: kubernetes.io/dockerconfigjson
  62. data:
  63. .dockerconfigjson: {{ template "imagePullSecret" . }}
  64.  
  65. imagePullSecrets:
  66. - name: {{ .Values.imageCredentials.name }}
Add Comment
Please, Sign In to add comment