update-ovh.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. apiVersion: batch/v1
  2. kind: CronJob
  3. metadata:
  4. name: update-ovh-nginx
  5. spec:
  6. schedule: "@hourly"
  7. jobTemplate:
  8. spec:
  9. template:
  10. spec:
  11. affinity:
  12. nodeAffinity:
  13. requiredDuringSchedulingIgnoredDuringExecution:
  14. nodeSelectorTerms:
  15. - matchExpressions:
  16. - key: net
  17. operator: In
  18. values:
  19. - local
  20. containers:
  21. - name: update-ovh-nginx
  22. image: qdii/update_ovh:latest
  23. env:
  24. - name: APPLICATION_KEY
  25. valueFrom:
  26. secretKeyRef:
  27. name: ovh
  28. key: application_key
  29. - name: APPLICATION_SECRET
  30. valueFrom:
  31. secretKeyRef:
  32. name: ovh
  33. key: application_secret
  34. - name: CONSUMER_KEY
  35. valueFrom:
  36. secretKeyRef:
  37. name: ovh
  38. key: consumer_key
  39. - name: ZONE_NAME
  40. value: "dodges.it"
  41. - name: SUBDOMAIN
  42. value: "nginx"
  43. - name: OVH_ENDPOINT
  44. value: "ovh-eu"
  45. - name: FORCE_IPV6
  46. value: "2a02:168:47b1:0:47a1:a412:9000:5993"
  47. restartPolicy: Never
  48. ---
  49. apiVersion: batch/v1
  50. kind: CronJob
  51. metadata:
  52. name: update-ovh-ter
  53. spec:
  54. schedule: "@hourly"
  55. jobTemplate:
  56. spec:
  57. template:
  58. spec:
  59. affinity:
  60. nodeAffinity:
  61. requiredDuringSchedulingIgnoredDuringExecution:
  62. nodeSelectorTerms:
  63. - matchExpressions:
  64. - key: kubernetes.io/hostname
  65. operator: In
  66. values:
  67. - ter.dodges.it
  68. containers:
  69. - name: update-ovh-ter
  70. image: qdii/update_ovh:latest
  71. env:
  72. - name: APPLICATION_KEY
  73. valueFrom:
  74. secretKeyRef:
  75. name: ovh
  76. key: application_key
  77. - name: APPLICATION_SECRET
  78. valueFrom:
  79. secretKeyRef:
  80. name: ovh
  81. key: application_secret
  82. - name: CONSUMER_KEY
  83. valueFrom:
  84. secretKeyRef:
  85. name: ovh
  86. key: consumer_key
  87. - name: ZONE_NAME
  88. value: "dodges.it"
  89. - name: SUBDOMAIN
  90. value: "ter"
  91. - name: OVH_ENDPOINT
  92. value: "ovh-eu"
  93. restartPolicy: Never