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 +4 -4
- data/README.md +1 -0
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/templates/_jobs_pod.yml +7 -0
- data/lib/templates/certificate.yml +1 -1
- data/lib/templates/ingress.yml +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677dd35055f07d5f449002c4e4cd1d32d12761ff99570e27722682c70fb0a350
|
4
|
+
data.tar.gz: d0eaa3dc7a2792e0fa41b775bb7f9179311dfa4b73b590cb0d9125688b0ef3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
{
|
data/lib/templates/_jobs_pod.yml
CHANGED
@@ -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:
|
data/lib/templates/ingress.yml
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
---
|
10
10
|
|
11
|
-
apiVersion:
|
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
|
-
|
30
|
-
|
31
|
-
|
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.
|
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-
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|