openshift-origin

custom metrics for horizontal pod autoscaler in OpenShift

纵饮孤独 提交于 2019-12-01 00:58:39
I am using openshift v3 which uses kubernetes version 1.2. I am exploring more on autoscaling feature. Currently it says only CPU metrics is supported. Is there a way pods in openshift can be scaled based on memory or other metrics data collected from heapster? As you mentioned: OpenShift v3 is using multiple components of Kubernetes. The official documentation of Kubernetes and openshift are talking about autoscaling on CPU. (Kubernetes 1.2 adds alpha support for scaling based on application-specific metrics like QPS). Autoscaling on memory wasn't released in the initial version of horizontal

How to debug “ImagePullBackOff”?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 04:37:29
All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status: [root@webdev2 origin]# oc get pods NAME READY STATUS RESTARTS AGE arix-3-yjq9w 0/1 ImagePullBackOff 0 10m docker-registry-2-vqstm 1/1 Running 0 2d router-1-kvjxq 1/1 Running 0 2d The application just won't start. The pod is not trying to run the container. From the Event page, I have got Back-off pulling image "172.30.84.25:5000/default/arix@sha256:d326 . I have verified that I can pull the image with the tag with docker pull . I have also checked the log of the last container. It was

Do Openshift Origin jobs need hard-coded internal registry URLs for images?

 ̄綄美尐妖づ 提交于 2019-11-27 23:21:19
I can't figure a namespace-portable way to build an image into an imagestream that can then be used for a job in an OpenShift project namespace without hard-coding the internal registry URL in the job config. Unlike deployment configs, the job configuration does not automatically build a pod config with the image URL correct for the internal registry. The resulting job never runs because the image can't be pulled. Failed to pull image "is-copy-adaptermappings": Error: image library/is-copy-adaptermappings:latest not found Working example generated deployconfig-generated pod ... containers: -

How to debug “ImagePullBackOff”?

落爺英雄遲暮 提交于 2019-11-27 05:20:48
问题 All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status: [root@webdev2 origin]# oc get pods NAME READY STATUS RESTARTS AGE arix-3-yjq9w 0/1 ImagePullBackOff 0 10m docker-registry-2-vqstm 1/1 Running 0 2d router-1-kvjxq 1/1 Running 0 2d The application just won't start. The pod is not trying to run the container. From the Event page, I have got Back-off pulling image "172.30.84.25:5000/default/arix@sha256:d326 . I have verified that I can

Do Openshift Origin jobs need hard-coded internal registry URLs for images?

℡╲_俬逩灬. 提交于 2019-11-27 04:40:38
问题 I can't figure a namespace-portable way to build an image into an imagestream that can then be used for a job in an OpenShift project namespace without hard-coding the internal registry URL in the job config. Unlike deployment configs, the job configuration does not automatically build a pod config with the image URL correct for the internal registry. The resulting job never runs because the image can't be pulled. Failed to pull image "is-copy-adaptermappings": Error: image library/is-copy