Most Popular
1500 questions
3
votes
1 answer
How to change value of pre-defined variable in GitLab to all lowercase
My environment requires the use of the predefined variable CI_PROJECT_NAMESPACE in .gitlab-ci.yml; however, this variable is in all caps, which makes my build job fail. I've tried several ways to convert the value of this variable to all lowercase…
wwillfred
- 33
- 1
- 3
3
votes
2 answers
How do I find out the attributes of a terraform object?
I'm creating a Terraform file, and something is obviously wrong,
Error: Incorrect condition type
on ssh.tf line 47, in locals:
47: is_generated = data.local_sensitive_file.public_key ? true : false
├────────────────
│…
Evan Carroll
- 2,091
- 3
- 22
- 65
3
votes
2 answers
I am looking for a production alternative to kubectl port-forward
I want to know what are production alternatives to make http://192.168.49.2:30001 this accessible http://host_machine_ip:8007 here
I have set up minikube cluster with mobile-api service on it.
minikube service mobile-api-service --url this returns…
Giorgi Beria
- 33
- 5
3
votes
1 answer
Do docker layers work at file level or block level?
I'm considering using a Docker image as way to snapshot a MySQL database after fixtures have been loaded, in order to quickly restore the snapshot before each acceptance test.
In order for this to be fast enough, the layer filesystem should operate…
BenMorel
- 198
- 1
- 8
3
votes
1 answer
How is 'self-healing' to be reconciled with Infrastructure as Code?
As a relative newcomer to the developments happening in Operations - DevOps, SRE, etc. - I'm struggling with a big-picture problem. The following is a specific example, using a network load-balancer.
From an IaC perspective, I take it that we should…
Yellowfog
- 139
- 2
3
votes
1 answer
Terraform conditional block inside a map
I have an aws_lambda_function resource like below:
resource "aws_lambda_function" "mylambda" {
#...
environment {
variables = {
FOO = 1
}
}
}
I'm tring to add some environment variables dynamically…
sgargel
- 244
- 1
- 5
- 12
3
votes
1 answer
Gathering timespan statistics from Git
I would like to easily query git to answer a question like the following:
How much time passed from when a developer made a git commit to when that commit was merged to a default branch from a feature branch (if that pattern is being used) or was…
Jesse Adelman
- 153
- 4
3
votes
1 answer
How to use same terraform code for both kubernetes clusters Oracle (OKE) and AWS (EKS)?
I want to use same terraform code for both kubernetes clusters oracle (OKE) and AWS (EKS) and install the argocd helm chart on it, I given my code below for your reference, now the problem I am facing now, if I set k8s_cluster_type to "eks", so…
San
- 31
- 1
3
votes
2 answers
What is the usage of the cluster external IP address?
I'm confused about the usage of the cluster external IP address.
Is this an address that can be used for ingress to access pods running on the cluster?
If so should this be the same as the control plane machine IP address (I only have a single…
Daniel Wood
- 31
- 2
3
votes
0 answers
How to collect statistics from CI over time?
CI environments like GitLab (self-hostet and Cloud), GitHub, CodeCov, Codacy, ... collect statistics over time, so a developer or team lead can see the evolution of the project over time:
number of merge requests, commits, contributors, ...
number…
Paebbels
- 131
- 4
3
votes
2 answers
Kubernetes fails to do do garbage collection on images
For quiet some time every once in a while I get an alert, that the disk of one of my Kubernetes cluster nodes is filling up. I pretty quickly found out, that it were the Docker images. As I did not have time to deeper analyze the issue, I just used…
Max N.
- 403
- 4
- 12
3
votes
1 answer
How do I supply a professional license to a Docker image?
I’m using Windows Server Core as part of an image I’m working on. When it's deployed to production, how do I supply a license to it?
Besides that, is this license needed to be bought for each image it's mounted on?
I've already mounted an image…
Mol
- 33
- 4
3
votes
2 answers
How best to delay startup of a kubernetes container until another container has done something?
I'm migrating a chunk of applications to k8s. Some of them have large amounts of config files which are best held in GIT as their size exceeds the max size for configmaps. I have a simple git-sync image which I can configure to keep a persistent…
beirtipol
- 133
- 1
- 5
3
votes
1 answer
Getting a docker build ready for (Heroku) deployment?
I've got a local application working using docker-compose up, this gets me the servers I need and they function just fine locally.
Now I've tried getting a build.sh started, but I can't figure out how to build a docker image using either…
Bjorn Schijff
- 131
- 2
3
votes
1 answer
NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
We have a cluster with 4 worker nodes and 1 master, and the flannel CNI installed. 1 kube-flannel-ds-xxxx pod running on every node.
They used to run fine, but 1 node suddenly entered NotReady state and does not come out of it anymore.
journalctl -u…
Serve Laurijssen
- 552
- 2
- 7
- 15