Skaffold

Building multi-architecture docker images with Skaffold

家住魔仙堡 提交于 2021-01-29 17:12:11
问题 I've been able to get two awesome technologies to work independently. Skaffold BuildX Unfortunatly I don't know how to use them both at the same time. I'm currently building and testing on my laptop (amd), then deploying to a Raspberri Pi 4 (arm64) running Kubernetes. To get this working I use something like: docker buildx build --platform linux/amd64,linux/arm64 --tag my-registry/my-image:latest --push . Before attempting to target an arm I was using skaffold. Is there any way to continue to

Setting up a readiness, liveness or startup probe

最后都变了- 提交于 2021-01-28 12:21:57
问题 I'm having difficulty understanding which would be best for my situation and how to actually implement it. In a nutshell, the problem is this: I'm spinning up my DB (Postgres), BE (Django), and FE (React) deployments with Skaffold About 50% of the time the BE spins up before the DB One of the first things Django tries to do is connect to the DB It only tries once (by design and can't be changed), if it can't, it fails and the application is broken Thus , I need to make sure every single time

Go dockerized build, cacheing the dependency pull layer

。_饼干妹妹 提交于 2021-01-07 04:50:46
问题 I'm having a ripping good time using skaffold to develop some kubernetes services, but one of the longest steps in my cycle is pulling all the dependencies for the container. Does anyone have recommendations on how I can best cache all the dependencies in a layer? Are there best practices with building go binaries inside docker containers? Should I have a layer where I do a go get ? (Also I'm a novice building go binaries, don't know all the bells and whistles yet.) 回答1: I agree with Grigoriy

Go dockerized build, cacheing the dependency pull layer

筅森魡賤 提交于 2021-01-07 04:50:29
问题 I'm having a ripping good time using skaffold to develop some kubernetes services, but one of the longest steps in my cycle is pulling all the dependencies for the container. Does anyone have recommendations on how I can best cache all the dependencies in a layer? Are there best practices with building go binaries inside docker containers? Should I have a layer where I do a go get ? (Also I'm a novice building go binaries, don't know all the bells and whistles yet.) 回答1: I agree with Grigoriy

Tie skaffold profile to namespace

六眼飞鱼酱① 提交于 2020-03-04 05:05:08
问题 Is there a way to tie a skaffold profile to a namespace? I'd like to make sure that dev, staging and prod deployments always go to the right namespace. I know that I can add a namespace to skaffold run like skaffold run -p dev -n dev but that's a little error prone. I'd like to make my builds even safer by tying profiles to namespaces. I've tried adding the following to my skaffold.yaml based on the fact that there's a path in skaffold.yaml which is build/cluster/namespace but I suspect I'm

How do I get Google Cloud Build to properly substitute values when it responds to a GitHub trigger?

空扰寡人 提交于 2020-01-14 08:29:11
问题 The Problem A GitHub trigger set up in Google Cloud Build doesn't actually substitute the configured values while running the Build ( cloudbuild.yaml ) This is the Google Cloud Build config cloudbuild.yaml steps: - name: 'gcr.io/cloud-builders/gcloud' id: 'decrypt .npmrc' args: - kms - decrypt - --ciphertext-file=npmrc.enc - --plaintext-file=/root/.npmrc - --location=global - --keyring=my-keyring - --key=npm-key - --project=${_CLOUD_KMS_PROJECT} volumes: - name: 'home' path: /root/ - name:

How do you debug python code with kubernetes and skaffold?

寵の児 提交于 2019-12-07 07:30:29
问题 I am currently running a django app under python3 through kubernetes by going through skaffold dev . I have hot reload working with the Python source code. Is it currently possible to do interactive debugging with python on kubernetes? For example, def index(request): import pdb; pdb.set_trace() return render(request, 'index.html', {}) Usually, outside a container, hitting the endpoint will drop me in the (pdb) shell. In the current setup, I have set stdin and tty to true in the Deployment

How do you debug python code with kubernetes and skaffold?

∥☆過路亽.° 提交于 2019-12-05 11:47:35
I am currently running a django app under python3 through kubernetes by going through skaffold dev . I have hot reload working with the Python source code. Is it currently possible to do interactive debugging with python on kubernetes? For example, def index(request): import pdb; pdb.set_trace() return render(request, 'index.html', {}) Usually, outside a container, hitting the endpoint will drop me in the (pdb) shell. In the current setup, I have set stdin and tty to true in the Deployment file. The code does stop at the breakpoint but it doesn't give me access to the (pdb) shell. There is a

10大工具汇总,多维度简化Kubernetes部署

心不动则不痛 提交于 2019-12-01 20:16:08
Kubernetes已经成为大规模部署经过编辑的应用程序的标准方法(许多人会说这是标准方法)。但是,如果Kubernetes可以帮助我们控制无序和复杂的经编辑的部署,那么有什么方法可以帮助我们控制Kubernetes呢?毕竟,它也可能是复杂、混乱和难以管理的。 随着Kubernetes的成长和演变,它的一些过度行为很可能会从内部得到控制。但是有些人并没有等到Kubernetes变得更容易使用,而是对生产中Kubernetes的许多常见问题推出了自己的解决方案。 在这里,我们重点介绍10个以各种方式简化Kubernetes的项目,从简化命令行交互,到简化应用程序部署语法,再到与AWS集成,再到为多个集群提供一个窗口。 目 录 Bitnami Cabin:适用于iOS和Android的Kubernetes面板 Kedge:简明的Kubernetes部署定义 Koki Short:可管理的Kubernetes密钥清单 Kops:Kubernetes集群的命令行操作 Kubebox:Kubernetes的终端控制台 Kube-monkey:Kubernetes的Chaos Monkey Kube-ps1:智能Kubernetes命令提示符 Kube-prompt:交互式Kubernetes客户端 Kube-shell:用于Kubernetes CLI的shell Kubespy