kubernetes_helper 1.20.1 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06d96c71b76d19776633e4c87af5dd1ef111411e1e547cc3c1ed02b02dd8dbe4
4
- data.tar.gz: b1d06ffb2d9171a8ee8b2bdb3df4c040ae5e0b61e0ba4b2ade820b01c8633b21
3
+ metadata.gz: 677dd35055f07d5f449002c4e4cd1d32d12761ff99570e27722682c70fb0a350
4
+ data.tar.gz: d0eaa3dc7a2792e0fa41b775bb7f9179311dfa4b73b590cb0d9125688b0ef3cb
5
5
  SHA512:
6
- metadata.gz: '09f1196d7c49cb45b312ce5f7b5a3a1a95a69687008d72387cee15bd7b587e0c86448c8084fb95c42e64f0590a970521be8c0900a46e4f742fa78f20e0a3f313'
7
- data.tar.gz: 5f30b70d43b0d622a95ed011830bdf8f0df54458251a4f7382e894e7a1f2eac69d9e97e146f8372a8055a3d929bb0c4a832c7efabe7c60a1db346e963acfa79a
6
+ metadata.gz: e293836d07c9afccb42791d8fa833cdbf544790b1b122bc69ed9b1e419eb1e41bd7e9c5621acadddbf795672c9ff649ee6b9c65deeba900d702e3df2278c53ae
7
+ data.tar.gz: 5f62fa69980442106fac6d86e754935bf17cc7a1aef57b392878b1c0dac256935ecb2565178c9918a3f2989317b4695d038b63f4ee78f4604ec9f29918c933fb
data/README.md CHANGED
@@ -55,6 +55,7 @@ Ideal to run sidekiq or similar jobs as a service without interacting via HTTP.
55
55
  - `deployment.job_apps[].sidekiq_alive_gem` (Boolean, default false): If true will add liveness checker settings using `sidekiq_alive_gem` (`sidekiq_alive` gem needs to be present in your Gemfile)
56
56
  - `deployment.job_apps[].services` (Array, Optional): List of linux service names that are required for a healthy job container. Sample: `['sidekiq', 'cron']`. Note: This will be ignored if `sidekiq_alive_gem` was defined.
57
57
  - `deployment.job_apps[].resources` (Hash, optional): Configure depending on the job app requirements. Sample: `{ cpu: { max: '1', min: '500m' }, mem: { max: '1Gi', min: '500Mi' } }`
58
+ - `deployment.job_apps[].rolling_update` (Boolean, default false): Uses `rollingUpdate` strategy instead of `recreate` (https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment)
58
59
  Sample:
59
60
  ```ruby
60
61
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.20.1'
4
+ VERSION = '1.21.0'
5
5
  end
@@ -8,7 +8,14 @@
8
8
  matchLabels:
9
9
  name: *job_app_name
10
10
  strategy:
11
+ <% if locals[:job_app][:rolling_update] %>
12
+ type: RollingUpdate
13
+ rollingUpdate:
14
+ maxSurge: 1
15
+ maxUnavailable: 0
16
+ <% else %>
11
17
  type: Recreate
18
+ <% end %>
12
19
  minReadySeconds: 10
13
20
  template:
14
21
  metadata:
@@ -1,6 +1,6 @@
1
1
  # locals: { domains: Hash(domain => cert_name) }
2
2
  <% locals[:domains].each do |domain, cert_name| %>
3
- apiVersion: networking.gke.io/v1beta1
3
+ apiVersion: networking.gke.io/v1
4
4
  kind: ManagedCertificate
5
5
  metadata:
6
6
  name: '<%= cert_name %>'
@@ -8,7 +8,7 @@
8
8
 
9
9
  ---
10
10
 
11
- apiVersion: extensions/v1beta1
11
+ apiVersion: networking.k8s.io/v1
12
12
  kind: Ingress
13
13
  metadata:
14
14
  name: '<%=ingress.name%>'
@@ -26,6 +26,8 @@ metadata:
26
26
  <% end %>
27
27
 
28
28
  spec:
29
- backend:
30
- serviceName: '<%=service.name%>'
31
- servicePort: '<%=service.port_name%>'
29
+ defaultBackend:
30
+ service:
31
+ name: '<%=service.name%>'
32
+ port:
33
+ name: '<%=service.port_name%>'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-30 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb