underpost 2.8.796 → 2.8.797
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.
- package/README.md +1 -1
- package/cli.md +1 -1
- package/conf.js +4 -0
- package/docker-compose.yml +1 -1
- package/manifests/deployment/dd-template-development/deployment.yaml +2 -2
- package/manifests/mongodb-4.4/service-deployment.yaml +2 -2
- package/package.json +1 -1
- package/src/cli/cluster.js +1 -1
- package/src/cli/deploy.js +5 -0
- package/src/cli/lxd.js +0 -4
- package/src/index.js +1 -1
package/README.md
CHANGED
package/cli.md
CHANGED
package/conf.js
CHANGED
package/docker-compose.yml
CHANGED
|
@@ -17,7 +17,7 @@ spec:
|
|
|
17
17
|
spec:
|
|
18
18
|
containers:
|
|
19
19
|
- name: dd-template-development-blue
|
|
20
|
-
image: localhost/debian-underpost:v2.8.
|
|
20
|
+
image: localhost/debian-underpost:v2.8.797
|
|
21
21
|
# resources:
|
|
22
22
|
# requests:
|
|
23
23
|
# memory: "124Ki"
|
|
@@ -100,7 +100,7 @@ spec:
|
|
|
100
100
|
spec:
|
|
101
101
|
containers:
|
|
102
102
|
- name: dd-template-development-green
|
|
103
|
-
image: localhost/debian-underpost:v2.8.
|
|
103
|
+
image: localhost/debian-underpost:v2.8.797
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|
|
@@ -13,11 +13,11 @@ spec:
|
|
|
13
13
|
labels:
|
|
14
14
|
app: mongodb
|
|
15
15
|
spec:
|
|
16
|
-
hostname:
|
|
16
|
+
hostname: mongodb-service
|
|
17
17
|
containers:
|
|
18
18
|
- name: mongodb
|
|
19
19
|
image: mongo:4.4
|
|
20
|
-
command: [
|
|
20
|
+
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
|
|
21
21
|
# -- bash
|
|
22
22
|
# mongo
|
|
23
23
|
# use admin
|
package/package.json
CHANGED
package/src/cli/cluster.js
CHANGED
|
@@ -262,7 +262,7 @@ class UnderpostCluster {
|
|
|
262
262
|
if (successInstance) {
|
|
263
263
|
const mongoConfig = {
|
|
264
264
|
_id: 'rs0',
|
|
265
|
-
members: [{ _id: 0, host: '
|
|
265
|
+
members: [{ _id: 0, host: 'mongodb-service:27017' }],
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
const [pod] = UnderpostDeploy.API.get(deploymentName);
|
package/src/cli/deploy.js
CHANGED
|
@@ -276,6 +276,10 @@ kubectl get configmap kubelet-config -n kube-system -o yaml > kubelet-config.yam
|
|
|
276
276
|
kubectl -n kube-system rollout restart daemonset kube-proxy
|
|
277
277
|
kubectl get EndpointSlice -o wide --all-namespaces -w
|
|
278
278
|
kubectl apply -k manifests/deployment/adminer/.
|
|
279
|
+
kubectl wait --for=condition=Ready pod/busybox1
|
|
280
|
+
kubectl wait --for=jsonpath='{.status.phase}'=Running pod/busybox1
|
|
281
|
+
kubectl wait --for='jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/busybox1
|
|
282
|
+
kubectl wait --for=delete pod/busybox1 --timeout=60s
|
|
279
283
|
|
|
280
284
|
kubectl run --rm -it test-dns --image=busybox:latest --restart=Never -- /bin/sh -c "
|
|
281
285
|
nslookup kubernetes.default.svc.cluster.local;
|
|
@@ -327,6 +331,7 @@ EOF
|
|
|
327
331
|
if (options.restoreHosts === true) {
|
|
328
332
|
renderHosts = etcHost(concatHots);
|
|
329
333
|
fs.writeFileSync(`/etc/hosts`, renderHosts, 'utf8');
|
|
334
|
+
logger.info(renderHosts);
|
|
330
335
|
return;
|
|
331
336
|
}
|
|
332
337
|
|
package/src/cli/lxd.js
CHANGED
|
@@ -75,10 +75,6 @@ ipv4.address=10.250.250.1/24 \
|
|
|
75
75
|
ipv4.nat=true \
|
|
76
76
|
ipv4.dhcp=true \
|
|
77
77
|
ipv6.address=none`);
|
|
78
|
-
// Explicitly set DNS nameservers for lxdbr0 to public DNS (e.g., Google DNS)
|
|
79
|
-
// This makes VM DNS resolution independent of the host's resolv.conf
|
|
80
|
-
shellExec(`lxc network set lxdbr0 dns.nameservers 8.8.8.8,8.8.4.4`);
|
|
81
|
-
shellExec(`lxc network set lxdbr0 dns.mode managed`); // Ensure LXD manages DNS for the bridge
|
|
82
78
|
}
|
|
83
79
|
if (options.createAdminProfile === true) {
|
|
84
80
|
pbcopy(`lxc profile create admin-profile`);
|