Category : kubernetes

I am trying to deploy next.JS on Kubernetes. But I also want to serve all the static files to get served from s3. Is there any way to do that? For Example. Currently, all the static files are being served from the local file system of the server. <link rel="preload" href="/_next/static/chunks/main.js?ts=1616564196729" as="script"> <link rel="preload" href="/_next/static/chunks/webpack.js?ts=1616564196729" ..

Read more

We have the following code (don’t ask me why…even as none-javascript dev it doesn’t look pretty to me), which throws error after Kubernetes upgrade: module.exports.getReplicationControllers = async function getReplicationControllers(namespace) { const kubeConfig = (await getNamespacesByCluster()).get(namespace); if (!kubeConfig) throw new Error(`No clusters contain the namespace ${namespace}`) const kubeConfigEscaped = shellEscape([kubeConfig]); const namespaceEscaped = shellEscape([namespace]); const result ..

Read more

Current behavior After upgrading from babel 6 to 7, Error occurred in PR deploy phrase. It was working normally in local build. This is what I see on pm2 log on K8s Cannot find module ‘@babel/runtime-corejs2/core-js/reflect/construct’ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Module.Hook._require.Module.require (/home/y/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/y/share/node/manhattan_app/transpile/lib/errorHelper.js:3:26) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at ..

Read more

Having built a static frontend, my thought was to deploy this to a static assets server like S3, while deploying my microservices backend using kubernetes to a compute service like EC2 or EKS. However, my research has only turned up one approach: building the frontend as a service in my kubernetes cluster. My questions: Is ..

Read more

So I have a project which builds 3 kubernetes pods which connect to each other, namely server, manager and browser, the browser part is implemented using Vue.js, others are using Python Flask. I have a configMap storing the address of the services of them, which is supposed to shared by the three: apiVersion: v1 kind: ..

Read more