I’m new in VerneMQ and K8s. I have a working VerneMQ docker image (made from source) deployed with 2 replicas on GKE. They work fine, but i have to manualy connect into one container and ejecute: vmq-admin cluster join discovery-node=<OtherClusterNode> so they can find each other and join in a VerneMQ Cluster. Is there a ..
How to push my app (using python-flask + redis) to gcr.io and deploy to google kubernetes (by yaml file)? And I want to set env variable for my app import os import redis from flask import Flask from flask import request, redirect, render_template, url_for from flask import Response app = Flask(__name__) redis_host = os.environ[‘REDIS_HOST’] app.redis ..
I have a little problem to deploy my container in k8 cluster in Google Cloud Platform. Following I pasted a part of log error happened during step 17 ("RUN pecl install grpc") written on my Dockerfile, but I don’t have any idea how to solve this issue, any suggestions? Step 17/52 : RUN pecl install ..
I’m using these docs to set up a github workflow to automatically update some docker images upon creating a release: https://docs.github.com/en/actions/guides/deploying-to-google-kubernetes-engine Now I have a service account that I used many times to push to GCR from my laptop, and it has the required permissions (storage object admin). Yet, at the publish step, I get ..
I am in the process of creating a cronJob on GKE to run weekly. It will consist of a Python script contained within a Docker image on a GKE cluster. The Python script will use the requests modules to call web URLs and so should be able to make http(s) requests. I have created my ..
I have a Github repo with 2 branches on it, develop and main. The first is the "test" environment and the other is the "production" environment. I am working with Google Kubernetes Engine and I have automated deployment from the push on Github to the deploy on GKE. So our workflow is : Pull develop ..
I generated a CA certificate, then issued a certificate based on it for a private registry, that located in the same GKE cluster. Put the server certificates to the private registry and the CA certificate to all GKE nodes and run: update-ca-certificates && systemctl restart docker Images are building and putting into the private registry ..
I have a cluster on GKE currently on version v1.19.9-gke.1400. Accordingly do kubernetes release notes, on 1.20 dockershim will be deprecated. My cluster is configured to auto-upgrades and in one specific application I use docker socket mapped to the application, where I run direct containers through their API. My question: In a hypothetical upgrade of ..
I am trying to implement flask-healthz (https://pypi.org/project/flask-healthz/) for my python application to get return on liveness and rediness probes. But somehow it doesn’t work for me. Below is my code snippet : from flask import Flask from flask_healthz import healthz from flask_healthz import HealthError def printok(): print("Everything is fine") app = Flask(__name__) app.register_blueprint(healthz, url_prefix="/healthz") def ..
I have a private docker registry in a google cloud k8s cluster that could be accessed only by IP. What I’ve tried to do: Wrote script to generate self-signed certificate. Use generated self-signed client key and certificate on the docker registry side. Put CA certificate on each k8s node to /etc/ssl/certs/registry-proxy-ca.pem and run systemctl restart ..