sct 0.1.19 → 0.1.20

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: e738ce105b1b145395e1126e272a2100112b7bc2282963b5ea08f76e0057f26e
4
- data.tar.gz: 46076d0d575a48bca094be8a6eaf298ca3cb9943788ed8e52cbe131b1708764f
3
+ metadata.gz: 886dba5184c321ede1c67d28d391bdea4c65c91d2039113c6efcd19271af52d5
4
+ data.tar.gz: 1a0d8b618938924eb2b5fb5bb2009e71cfdf066e42e6bc125845c9a272715e37
5
5
  SHA512:
6
- metadata.gz: c56a04592b7e8e81065dbad8c2f0913df26e90381bf2d0581741ad4e34db4b044da88688b8a1a5fdf8e08a7ac89676867934efc9f8ff6641eda2437c62df3ef0
7
- data.tar.gz: a598f85d2e88af7230783a9918a1d0d90c5e6dd622fd3b98fbed1ea52081d3acde39e95bbf03cc8811e6a0eb6c66c7d7c37e5ff98dad51eb3003bc2f0bb7ea3d
6
+ metadata.gz: 999c86de5b963c310cd538bf216ff8a4efa60390674a579e8c62b5f8b5e3b366203e0970180ffca104803e381826261be7902b6bd881dcb38086def2b871f8b4
7
+ data.tar.gz: f0dcfa20601a483a703f0c9f40ea64ecfd12e68251d63bafd77f77fcdf6bee9c97f93d1fe66446ec0cd66624ff8e1fa3f80386a6fde0fabdda76bcba13baca11
@@ -0,0 +1,45 @@
1
+ apiVersion: v1
2
+ data:
3
+ Corefile: |
4
+ .:53 {
5
+ errors
6
+ health {
7
+ lameduck 5s
8
+ }
9
+ ready
10
+ kubernetes cluster.local in-addr.arpa ip6.arpa {
11
+ pods insecure
12
+ fallthrough in-addr.arpa ip6.arpa
13
+ ttl 30
14
+ }
15
+ prometheus :9153
16
+ forward . 8.8.8.8
17
+ cache 30
18
+ loop
19
+ reload
20
+ loadbalance
21
+ }
22
+ Corefile-backup: |
23
+ .:53 {
24
+ errors
25
+ health {
26
+ lameduck 5s
27
+ }
28
+ ready
29
+ kubernetes cluster.local in-addr.arpa ip6.arpa {
30
+ pods insecure
31
+ fallthrough in-addr.arpa ip6.arpa
32
+ ttl 30
33
+ }
34
+ prometheus :9153
35
+ forward . /etc/resolv.conf
36
+ cache 30
37
+ loop
38
+ reload
39
+ loadbalance
40
+ }
41
+ kind: ConfigMap
42
+ metadata:
43
+ creationTimestamp: null
44
+ name: coredns
45
+ selfLink: /api/v1/namespaces/kube-system/configmaps/coredns
@@ -87,7 +87,7 @@ module Cluster
87
87
 
88
88
  run_command "kubectl config use-context minikube"
89
89
 
90
- run_command "kubectl replace -n kube-system -f #{File.expand_path('../../resources/corefile.yml', __dir__)}"
90
+ run_command "kubectl replace -n kube-system -f #{File.expand_path('resources/corefile.yml', __dir__)}"
91
91
  old_list = pods("kube-system").map { |pod| pod[:name] if pod[:name].start_with? "coredns" }.compact
92
92
  run_command "kubectl delete pod -n kube-system #{old_list.join(" ")}" unless old_list.to_a.empty?
93
93
  run_command "kubectl rollout status -n kube-system deployment/coredns"
@@ -1,3 +1,3 @@
1
1
  module Sct
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reshad Farid
@@ -166,6 +166,8 @@ files:
166
166
  - cluster/lib/cluster.rb
167
167
  - cluster/lib/cluster/commands_generator.rb
168
168
  - cluster/lib/cluster/module.rb
169
+ - cluster/lib/cluster/resources/.DS_Store
170
+ - cluster/lib/cluster/resources/corefile.yml
169
171
  - cluster/lib/cluster/runner.rb
170
172
  - sct/lib/.DS_Store
171
173
  - sct/lib/sct.rb