openshift-enterprise

Tomcat - How to persist a session immediately to disk using PersistentManager + FileStore

折月煮酒 提交于 2021-02-07 09:15:50
问题 I want to persist Tomcat's HttpSessions to disk so that it can be used in a scalable cloud environment. The point is that there will be a number of Tomcat nodes up (in a cloud PaaS) and clients can be directed to any of them. We want to persist and load the sessions from a shared disk unit. I have configured the PersistentManager this way: context.xml <Manager className="org.apache.catalina.session.PersistentManager"> <Store className="org.apache.catalina.session.FileStore" directory="c:

Tomcat - How to persist a session immediately to disk using PersistentManager + FileStore

时间秒杀一切 提交于 2021-02-07 09:13:54
问题 I want to persist Tomcat's HttpSessions to disk so that it can be used in a scalable cloud environment. The point is that there will be a number of Tomcat nodes up (in a cloud PaaS) and clients can be directed to any of them. We want to persist and load the sessions from a shared disk unit. I have configured the PersistentManager this way: context.xml <Manager className="org.apache.catalina.session.PersistentManager"> <Store className="org.apache.catalina.session.FileStore" directory="c:

How to allow image pull from one project to another in openshift?

南楼画角 提交于 2020-05-26 05:13:13
问题 I have created one project testing1 in which i published docker images. Now, i want to created similar another project testing2 with same images that i pushed in testing1 . I don’t want to publish it again. 回答1: Login to your openshift command line and run command: oc policy add-role-to-user \ system:image-puller system:serviceaccount:testing2:default \ --namespace=testing1 OR oc policy add-role-to-user \ system:image-puller system:serviceaccount:testing2:default \ -n testing1 Your project

What is the benefit of putting multiple containers in a pod?

夙愿已清 提交于 2020-05-08 04:14:10
问题 What's the benefit of having multiple containers in a pod versus having standalone containers? 回答1: If you have multiple containers in the same pod, they can speak to each other as localhost and can share mounted volumes. If you have multiple pods of one container each, you can restart one without restarting the other. Assuming they're controlled by deployments, you can add additional replicas of one without necessarily scaling the other. If the version or some other characteristic of one of

Openshift Admin Token

青春壹個敷衍的年華 提交于 2020-02-06 07:34:08
问题 I am trying to create a script that records project resources every 15 minutes. How do I authenticate with Openshift API? Is there a token I can use that has read access on all namespaces? How do I create a service account that has access over all namespaces? 回答1: You'll need to create a ClusterRole that has read access to the resources and use ClusterRoleBinding to associate the ServiceAccount to that ClusterRole. Rough example, not tested but it should work: # creates the service account

OpenShift 4.2 Rest API documentation

谁都会走 提交于 2020-01-13 20:27:23
问题 Is there any link to find OpenShift 4.2 Rest API documentation? I could see latest that we have is for 3.11 https://docs.openshift.com/container-platform/3.11/rest_api/index.html. 回答1: OpenShift Rest API documentation is expected to be available once 4.3 is released. In the meantime, OpenShift 4.2 is built on top of Kubernetes 1.14; the 1.14 Rest API documentation is available at https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/. For OpenShift specific resources, if you're

custom metrics for horizontal pod autoscaler in OpenShift

泄露秘密 提交于 2019-12-30 07:27:10
问题 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? 回答1: 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

rhc ssh [No system SSH available] error

独自空忆成欢 提交于 2019-12-18 12:00:03
问题 I want view my openshift application log in my cmd. I did try : rhc ssh appname that time i am getting: No system SSH available. Please use the --ssh option to specify the path to your SSH executable, or install SSH. My system have already ssh key.so how can i solve that problem? 回答1: You need to make sure: you are in a cmd session where HOME is define (type set HOME to check its value: it must be C:\Users\yourLogin , because ssh needs to look for keys in %HOME%\.ssh ) your ssh.exe parent

openshift persistent volumes

ⅰ亾dé卋堺 提交于 2019-12-12 02:53:19
问题 can we use same NFS persistent volume for multiple pods in openshift v3.1. because what I noticed is when I mount the same persistent volumes to multiple pods, all data inside mounted directory of container gets replaced by NFS volume directory of server. How to make sure that NFS volume has data from multiple pods. And pods only has their data, not all data from the PV? thanks in advance! 回答1: NFS persistent volumes will be the same across multiple pods. You can always use the pod name as an

OpenShift 4.2 Rest API documentation

 ̄綄美尐妖づ 提交于 2019-12-06 07:23:17
Is there any link to find OpenShift 4.2 Rest API documentation? I could see latest that we have is for 3.11 https://docs.openshift.com/container-platform/3.11/rest_api/index.html . OpenShift Rest API documentation is expected to be available once 4.3 is released. In the meantime, OpenShift 4.2 is built on top of Kubernetes 1.14; the 1.14 Rest API documentation is available at https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/ . For OpenShift specific resources, if you're looking for the resource definitions, you can use oc explain <RESOURCE> --recursive from the cli to see a