4
votes
Accepted
Gitworkflow and testing short lived feature branches in Openshift/Kubernetes
I'm not altogether sure if there actually is a problem you're trying to solve, or whether you are looking for confirmation that you are on the right track. Some thoughts:
Internally openshift ...
4
votes
Scale number of pods in OpenShift from oc command line
found the issue, instead of 'dc' need to use 'deploy'
oc scale deploy name_of_deployment--replicas=2
4
votes
What is the difference between a jail environment in linux and docker container?
While both Docker and jails have some similar functionality, they are built for different purposes.
The term "jail" comes from the FreeBSD distro. A lot of people will also refer to a chroot as a ...
4
votes
Passing replicas number into container
If you launch the statefulset with the following key set
{"spec":{"template":{"spec":{"serviceAccountName":"myserviceaccount"}}}}
you can run
curl \
...
3
votes
Accepted
How to get a list scaled down pods in OpenShift?
Running the oc get hpa command provides a table showing min/max and current replicas.
oc get hpa hpa-resource-metrics-memory
NAME REFERENCE TARGETS ...
3
votes
Create service per pod in statefulset
The above answer is incorrect. You can use pod name labels, cf: https://stackoverflow.com/questions/68123751/kubernetes-service-for-a-subset-of-statefulset-pods
For example:
apiVersion: v1
kind: ...
3
votes
Accepted
What is the difference between a node and a machine on OpenShift?
Your interpretation is correct:
My current understanding is that a machine represents a raw physical or virtual machine; just the computational resources like cpu, memory and storage. Nodes, then, ...
3
votes
Accepted
What are the best logging/metrics reporting tools for use with OpenShift?
The question hasn't had an answer in seven months so I will promote my upvoted comment to an answer:
Finding the lifecycle of a specific message across services is known as "distributed tracing". ...
3
votes
OpenShift configuration management
AFAIK neither OpenShift nor Kubernetes itself allow you to externalize services configuration. You should have a bunch of yml/json files somewhere and control their deployment/configuration using CLI ...
2
votes
OpenShift configuration management
In my experience Openshift is open in terms of supporting good Kubernetes tools that the community comes up with. You can adopt the Kubernetes tooling that fits your needs. We use Helm to manage the ...
2
votes
Accepted
How to change a statefulset in OpenShift?
Shameless self-answer:
So it turns out the only way to edit the statefulset, and this is by design, is to delete it and recreate it with the new values.
Doing that does not delete or stop the pods ...
2
votes
Accepted
How to use same Helm dependency in many charts?
Finnaly, I found the solution, thanks to @simbo1905.
All that I need to fix that problem:
values.yaml Child Chart 1 (or two)
postgresql:
nameOverride: chart-1-postgres
In the Child Chart 2 ...
2
votes
Accepted
What is the proper way to fix `error: did not detect an --insecure-registry argument on the Docker daemon` while running `oc cluster up`?
This error happens because the oc cluster up command spawns a Docker registry. The 172.30.0.0/16 IP range is probably corresponding to your Docker bridge network. As the registry will run in a ...
2
votes
Accepted
elasticsearch-fluentd helm chart on Openshift 3.11 pod failing
Changing logging driver form journald to json has fixed it.
I edited /etc/sysconfig/docker, and set
OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false'
Then restarted ...
2
votes
Passing replicas number into container
Define the number of replicas in the values.yaml and pass it anywhere in resources (statefulset)
Update 1: You can neither have a dynamic environment variable nor refer to the replicas field in STS. ...
2
votes
Create service per pod in statefulset
Just to clarify if I got you right.
Do you want to have a separate service for every pod/replica in your statefulSet?
If so - this is not how K8s sees services being used. The service is used for ...
2
votes
Accepted
Fluentd unable to read logs from all namespaces
Million dollar question - are you running your fluentD as a DaemonSet? If not, there's a chance that fluentd simply isn't running on the node where some containers live.
Otherwise, my best guess is, ...
1
vote
Scheduling a build using Kubernetes
According the documentation you're giving, you need to remove run-build from the command :
$ oc run NAME --image=<image> \
[--generator=<resource>] \
[--port=<port>] \
[--...
1
vote
How do I setup an OpenShift route that will allow both 80 and 443 traffic to my app?
You'll want to be sure your spec.tls section has the following two items to tell the router you want both secure and insecure traffic allowed in the edge.
apiVersion: route.openshift.io/v1
kind: ...
1
vote
What is the difference between a node and a machine on OpenShift?
Basically, a Node is just a simple worker OpenShift (or Kubernetes) instance where OpenShift can schedule Pods.
Machine is a new API introduce by OpenShift 4 that manage dynamic instance provisioning ...
1
vote
Accepted
CodeReady Container for OpenShift won't start on Windows 10
Disable any VPNs on the computer
Create a virtual switch named crc
It took me some time to figure these out, so sharing
1
vote
OpenShift fails to deploy jenkins - connection refused
Have you set Jenkins ssh key to have access to source?
Another point is to validate if the SSH port is open. According to error can be one of these things
1
vote
Expose metrics for Kotlin using JMX_Exporter to prometheus
After trying many things, I came to know that I needed to expose the port of my application's container in order to let Prometheus or other deployments to know. After exposing the port, I could see my ...
1
vote
Accepted
Interacting with a Trident container (NetApp) via CLI within a Openshift/Kubernetes cluster?
There's apparently 2 methods one can use to leverage tridentctl to interact with a running Trident Pod in their Openshift/Kubernetes cluster.
1. Server string
The tridentctl CLI can be instructed to ...
1
vote
declaratively mount a service account secret in OpenShift
Okay the answer to this is that you can set spec.serviceAccountName on the dc and the secrets are mounted.
Annoyingly the same does not hold true for BuildConfig objects. They have an inconsistently ...
1
vote
How to implement the Load Balancing in Openshift ?
The simplest way is to find the icon that scales the application up and click it. In the current UI it's in Project --> Overview --> expand the application info (">" icon to the left), --> click "^" ...
1
vote
How do I get Openshift to let Tomcat retain it's hosted site's changes
You need to use a Persitent Volume.
Your /path_to_data/openshiftdata is probably on a disk that belongs to the pod and is being destroyed each time.
1
vote
Multiple Kafka brokers behind a single OpenShift service?
Yes, you can. HAProxy is purpose built to balance any TCP or HTTP connection. My old company used to run every component of Kafka with HAproxy.
Here is a whole project dedicated to running auto-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
openshift × 38kubernetes × 13
docker × 6
security × 3
prometheus × 3
helm × 2
loadbalancing × 2
fluentd × 2
jenkins × 1
amazon-web-services × 1
continuous-integration × 1
gitlab × 1
containers × 1
git × 1
linux × 1
continuous-deployment × 1
dockerfile × 1
cicd × 1
monitoring × 1
networking × 1
configuration-management × 1
microservices × 1
yaml × 1
dns × 1
load-balance × 1