openshift

Triggering auto-expansion of openshift persistent volumes

扶醉桌前 提交于 2020-06-16 17:32:34
问题 I have deployed mysql stateful-set with one master and two slave pods. Each of the pod has their own Persistent Volume Claim(PVC) as per storage requested by user. I am able to expand any persistent volume by editing their respective PVC. I am trying to implement a service to trigger auto-expansion of respective volume as soon as consumed storage of any pod crosses 90%. (Preferred in Java ) As per my investigation, I can use patch request for editing any PVC json file for desired storage.

Openshift Route is not load balancing from Service pods

北城余情 提交于 2020-05-27 12:21:03
问题 I have tried before on Openshift Origin 3.9 and Online. I have deployed a simple hello world php app on Openshift. It has a Service and a Route. When I call the route, I am getting expected output with Hello world and the Pod IP. Let's call this pod ip as 1.1.1.1 Now i deployed same app with small text change with same label under same Service. Let's call this pod ip as 2.2.2.2 I can see both pods running in a single Service. Now when I call the route, it always shows Podip 1.1.1.1 My route

Openshift Route is not load balancing from Service pods

寵の児 提交于 2020-05-27 12:20:17
问题 I have tried before on Openshift Origin 3.9 and Online. I have deployed a simple hello world php app on Openshift. It has a Service and a Route. When I call the route, I am getting expected output with Hello world and the Pod IP. Let's call this pod ip as 1.1.1.1 Now i deployed same app with small text change with same label under same Service. Let's call this pod ip as 2.2.2.2 I can see both pods running in a single Service. Now when I call the route, it always shows Podip 1.1.1.1 My route

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

Docker安装Jenkins

杀马特。学长 韩版系。学妹 提交于 2020-05-09 00:28:31
Jenkins官方网址: https://jenkins.io/ dockerHub官方网址: https://hub.docker.com/ Jenkins社区版镜像: https://github.com/jenkinsci/docker/blob/master/README.md 一、使用docker search命令搜索Jenkins镜像 localhost:~ piao$ docker search jenkins NAME DESCRIPTION STARS OFFICIAL AUTOMATED jenkins Official Jenkins Docker image 4768 [OK] jenkins/jenkins The leading open source automation server 2035 jenkinsci/blueocean https://jenkins.io/projects/blueocean 516 jenkinsci/jenkins Jenkins Continuous Integration and Delivery … 382 jenkins/jnlp-slave a Jenkins agent which can connect to Jenkins… 127 [OK] jenkinsci/jnlp-slave A

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的SpringBoot微服务

空扰寡人 提交于 2020-05-02 13:57:38
基于Openshift的SpringBoot微服务 OpenShift是红帽的云开发平台即服务(PaaS)。自由和开放源码的云计算平台使开发人员能够创建、测试和运行他们的应用程序,并且可以把它们部署到云中。Openshift广泛支持多种编程语言和框架,如Java,Ruby和PHP等。另外它还提供了多种集成开发工具如Eclipse integration,JBoss Developer Studio和 Jenkins等。OpenShift 基于一个开源生态系统为移动应用,数据库服务等,提供支持。 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。通过这种方式,Spring Boot致力于在蓬勃发展的快速应用开发领域(rapid application development)成为领导者。 OpenShift与Kubernetes 虽然两者都基于Linux,但每个产品都在不同的环境中运行: Kubernetes在其可运行的操作系统方面更加灵活。但是,包管理器是RPM,这意味着Linux发行版。因此最好在Fedora,Ubuntu或Debian上运行它。Kubernetes可以部署在任何主要的IaaS平台上,例如AWS,Azure和GCP

云原生范式转变:您准备好了吗?

跟風遠走 提交于 2020-04-30 13:46:51
Open Source Business Automation | Activiti 云原生范式转变:您准备好了吗? The Cloud Native Paradigm Shift: Are You Ready? https://blog.container-solutions.com/the-cloud-native-paradigm-shift-are-you-ready 云原生范式转变:您准备好了吗? 2019年4月3日由皮尼列兹尼克 - 4分钟的读出时间 在Container Solutions,当我们说我们要帮助公司将自己转变为Cloud Native实体时,我们出于特定原因使用该术语。Cloud Native是一项重大的 范式转变 ,不仅仅是将最新的新技术固定在公司多年来一直在做的事情上。 上一次真正的范式转变是敏捷,它发生于20年前,但尚未结束。很少有人真正在做纯粹的敏捷,尽管许多组织都这样认为。大多数人并不真正了解敏捷-并且绝对不练习敏捷。尽管如此,许多人至少已经适应了一些敏捷工具,因此将自己视为敏捷。 更大的担忧是人们普遍认为Cloud Native仅是敏捷的增量阶段,就像下一步一样。但这既不真实,也有潜在危险。CN不是敏捷的一些向前迭代。这是真正的范式转变。它是敏捷的替代品。 为什么这么重要?对于我们来说,这是我们在进行Cloud

记一次性能优化(线程相关)

耗尽温柔 提交于 2020-04-17 23:54:21
最近一直在负责业务监控告警相关的开发;由于组织架构调整,从原来的服务端架构组分离出来成立工程效率组,很多原来不是我们组负责的项目也开始陆续交接到了我们手里; 以前一直由业务部门负责开发的sensoragent项目就是由我来交接,交接的时候才发现有很多问题,该应用是业务部门用来从MQ消费消息往神策发送数据的,由于数据量很大,该应用在生产已经扩大到了12点,而我们普通应用在生产也就四个点;虽然已经扩大到了12点,生产仍然有很大的消息堆积来不及处理,所以每天都能收到大量的消息堆积告警; 部门领导也跟我强调说,生产12个点仍然积压,服务肯定是有问题的,因为我最近单独负责神策指标收集系统的开发,所以和这个系统相关的指标发送系统的排查任务也就落到了我的头上。 下图是我的告警(目前公司只有开发运维角色才会接收到告警) 因为这两天迭代结束,有时间来处理下自己交接项目的一个分析和优化: 我查看了应用在openshift里面的一些情况,同时也分析了一下granfa上面的应用运行状况:在看到openshift里面的时候发现了一些端倪:如图 项目里用到了十个线程去消费 MQ的数据,但是openshift上面可以看出,每次只有一个线程在处理,而且会出现Blocked的情况: 点开以后发现blocked的线程阻塞在send方法: @Override public void send(Map<String,

Open Shift Angular 8 Application Out of Memory Issue

自古美人都是妖i 提交于 2020-04-16 05:33:48
问题 I am using Modern Wep App image for openshift Angular 8 app but application is getting failed on "npm build" Out Of Memory issue. Error Logs: /usr/libexec/s2i/assemble: line 62: 296 Killed $NPM_BUILD subprocess exited with status 137 subprocess exited with status 137 error: build error: error building at STEP "RUN /usr/libexec/s2i/assemble": exit status 137 Environment Variables Set in Openshift Console 来源: https://stackoverflow.com/questions/58066739/open-shift-angular-8-application-out-of