kubernetes_helper 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8b8fba09e6bdb8ee80e82af9a966d53ba213d58294c894d4463aeba8ec66f44
|
4
|
+
data.tar.gz: dfb9d875daeee0399190208e4ff7c6b2136dc1cbd3550753fb4318551158f4c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcb3e3a26693625c437dafbfb38520a8db2aa7b4a4d9fc29804706e728e62c585a2c4aaaa3fabac1e081a9acbca4346a516148c95f28716400ba44ef53dc6136
|
7
|
+
data.tar.gz: 5f5f20d3dd0f582910a6e48bb1ec2c9b23da5ec7b8a72fcdd4c8338c6a8ea07ef60f442f41f22bd8587e4d0a0027758bb65ecfcefedb107a89e16e8abd2f65be
|
@@ -0,0 +1,12 @@
|
|
1
|
+
ports: [ ]
|
2
|
+
<% if (deployment.job_services || []).any? %>
|
3
|
+
livenessProbe: &liveness_probe
|
4
|
+
exec:
|
5
|
+
command: [ /bin/sh, -c,
|
6
|
+
'if [ $(ps -ef | grep "<%= deployment.job_services.join("\|") %>" | grep -v "grep" | wc -l) -lt <%= deployment.job_services.count %> ]; then
|
7
|
+
echo "Some required services are not running"; exit 1;
|
8
|
+
fi' ]
|
9
|
+
initialDelaySeconds: 120
|
10
|
+
periodSeconds: 30
|
11
|
+
readinessProbe: *liveness_probe
|
12
|
+
<% end %>
|
@@ -42,6 +42,7 @@ documents:
|
|
42
42
|
periodSeconds: 15
|
43
43
|
readinessProbe: *liveness_probe
|
44
44
|
<% end %>
|
45
|
+
<%= include_template "_container_extra_settings.yml", { pod: 'web' } %>
|
45
46
|
|
46
47
|
volumeMounts:
|
47
48
|
- &log_volume
|
@@ -70,6 +71,7 @@ documents:
|
|
70
71
|
env: []
|
71
72
|
volumeMounts:
|
72
73
|
- *cloud_credentials_volume
|
74
|
+
<%= include_template "_container_extra_settings.yml", { pod: 'cloudsql' } %>
|
73
75
|
<% end %>
|
74
76
|
|
75
77
|
- &logs_container # print to stdout all log files
|
@@ -79,6 +81,7 @@ documents:
|
|
79
81
|
env: []
|
80
82
|
volumeMounts:
|
81
83
|
- *log_volume
|
84
|
+
<%= include_template "_container_extra_settings.yml", { pod: 'logs' } %>
|
82
85
|
|
83
86
|
<%= include_template "_custom_containers.yml", { pod: 'web' } %>
|
84
87
|
|
@@ -127,22 +130,12 @@ documents:
|
|
127
130
|
<% if deployment.job_command %>
|
128
131
|
command: [ "/bin/bash", "-c", "<%= deployment.job_command %>" ]
|
129
132
|
<% end %>
|
133
|
+
<%= include_template "_container_extra_settings.yml", { pod: 'job' } %>
|
130
134
|
|
131
135
|
<% if deployment.job_sidekiq_alive_gem %>
|
132
136
|
<%= include_template "_sidekiq_alive_gem.yml" %>
|
133
137
|
<% else %>
|
134
|
-
|
135
|
-
<% if (deployment.job_services || []).any? %>
|
136
|
-
livenessProbe: &liveness_probe
|
137
|
-
exec:
|
138
|
-
command: [ /bin/sh, -c,
|
139
|
-
'if [ $(ps -ef | grep "<%= deployment.job_services.join("\|") %>" | grep -v "grep" | wc -l) -lt <%= deployment.job_services.count %> ]; then
|
140
|
-
echo "Some required services are not running"; exit 1;
|
141
|
-
fi' ]
|
142
|
-
initialDelaySeconds: 120
|
143
|
-
periodSeconds: 30
|
144
|
-
readinessProbe: *liveness_probe
|
145
|
-
<% end %>
|
138
|
+
<%= include_template "_job_liveness.yml" %>
|
146
139
|
<% end %>
|
147
140
|
|
148
141
|
<% if deployment.cloud_secret_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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- owen2345
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|
@@ -41,7 +41,9 @@ files:
|
|
41
41
|
- lib/kubernetes_helper/version.rb
|
42
42
|
- lib/templates/README.md
|
43
43
|
- lib/templates/_cd_apply_images.sh
|
44
|
+
- lib/templates/_container_extra_settings.yml
|
44
45
|
- lib/templates/_custom_containers.yml
|
46
|
+
- lib/templates/_job_liveness.yml
|
45
47
|
- lib/templates/_replicas.yml
|
46
48
|
- lib/templates/_sidekiq_alive_gem.yml
|
47
49
|
- lib/templates/cd.sh
|