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 CHANGED
@@ -68,7 +68,7 @@ Run dev client server
68
68
  npm run dev
69
69
  ```
70
70
  <!-- -->
71
- ## underpost ci/cd cli v2.8.796
71
+ ## underpost ci/cd cli v2.8.797
72
72
 
73
73
  ### Usage: `underpost [options] [command]`
74
74
  ```
package/cli.md CHANGED
@@ -1,4 +1,4 @@
1
- ## underpost ci/cd cli v2.8.796
1
+ ## underpost ci/cd cli v2.8.797
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
4
  ```
package/conf.js CHANGED
@@ -164,6 +164,10 @@ const DefaultConf = /**/ {
164
164
  auth: { user: 'noreply@default.net', pass: '' },
165
165
  },
166
166
  },
167
+ valkey: {
168
+ port: 6379,
169
+ host: '127.0.0.1',
170
+ },
167
171
  },
168
172
  },
169
173
  'www.default.net': {
@@ -58,7 +58,7 @@ services:
58
58
  cpus: '0.25'
59
59
  memory: 20M
60
60
  labels: # labels in Compose file instead of Dockerfile
61
- engine.version: '2.8.796'
61
+ engine.version: '2.8.797'
62
62
  networks:
63
63
  - load-balancer
64
64
 
@@ -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.796
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.796
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: mongo
16
+ hostname: mongodb-service
17
17
  containers:
18
18
  - name: mongodb
19
19
  image: mongo:4.4
20
- command: ['mongod', '--replSet', 'rs0', '--bind_ip_all']
20
+ command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
21
21
  # -- bash
22
22
  # mongo
23
23
  # use admin
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "underpost",
5
- "version": "2.8.796",
5
+ "version": "2.8.797",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
@@ -262,7 +262,7 @@ class UnderpostCluster {
262
262
  if (successInstance) {
263
263
  const mongoConfig = {
264
264
  _id: 'rs0',
265
- members: [{ _id: 0, host: '127.0.0.1:27017' }],
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`);
package/src/index.js CHANGED
@@ -31,7 +31,7 @@ class Underpost {
31
31
  * @type {String}
32
32
  * @memberof Underpost
33
33
  */
34
- static version = 'v2.8.796';
34
+ static version = 'v2.8.797';
35
35
  /**
36
36
  * Repository cli API
37
37
  * @static