Re: openshift memory requirements

2017-05-23 Thread Louis Santillan
If the machine is an i7 it likely only has 4 cores/threads total. 3 VM x 2 cores = 6 cores required. Also, instead of having 3 VMs with at least one IO controller and a NIC each, you have 3 VMs sharing 1 IO controller and 1 NIC. Not as fun as it sounds. My lab machine is a HP z820 with 32 cores

Re: Possible bug with haproxy?

2017-05-26 Thread Louis Santillan
On the internal consultant chat server, it's come up several times and some customers are using tcp backend mode (vs. http or https) on their routers to support http/2. As for OP's situation, more details are needed about the OAuth client config and DNS settings. Is DNS set per the documentation?

Re: Backup of databases on OpenShift

2017-06-09 Thread Louis Santillan
My personal feeling is that I would, for at least MySQL/MariaDB & PostgreSQL, setup replication with compression to a non-cluster hosted DB. Preferably, your ODW/DW DB instance(s) or maybe a staging DB. With compression, you ship relatively small logs over the wire. --

Re: 2 questions

2017-06-14 Thread Louis Santillan
With regards to routes, the best thing to do is create a new route that matches the DNS name you want. --- LOUIS P. SANTILLAN SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS Red Hat Consulting, NA US WEST

Re: oc whoami bug?

2017-06-19 Thread Louis Santillan
The default user for any request is `system:anonymous` a user is not logged in or a valid token is not found. Depending on your cluster, this usually has almost no access (less than `system:authenticated`). Maybe an RFE is order (oc could suggest logging in if request is unsuccessful and the foun

Re: oc whoami bug?

2017-06-20 Thread Louis Santillan
< philippe.lafoucri...@tech-angels.com> wrote: > > On Mon, Jun 19, 2017 at 4:56 PM, Louis Santillan > wrote: > >> The default user for any request is `system:anonymous` a user is not >> logged in or a valid token is not found. Depending on your cluster, this >> usu

Re: oc whoami bug?

2017-06-20 Thread Louis Santillan
just prints your > current session's token > > > On Tue, Jun 20, 2017 at 2:31 PM, Louis Santillan > wrote: > >> The `oc` command always looks for the current session in >> `~/.kube/config`. It doesn't know if a session is expired or not since >> sessi

Re: oc whoami bug?

2017-06-20 Thread Louis Santillan
LTANT, OPENSHIFT, MIDDLEWARE & DEVOPS Red Hat Consulting, NA US WEST <https://www.redhat.com/> lpsan...@gmail.comM: 3236334854 <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> On Tue, Jun 20, 2017 at 3:46 PM, Louis Santillan wrote: > $ ocx () {

Re: Configuring custom certs

2017-07-28 Thread Louis Santillan
I tend to use the ansible installer instead of `oc cluster up`, but, have you tried following the documented procedures [0][1] and specifically, the one for the masters [2]? May have to add a CA run as well [3]. [0] https://docs.openshift.org/latest/install_config/certificate_customization.html [

Re: S2I builds not incremental?

2017-10-14 Thread Louis Santillan
Also, you may need to have support from your Base Image as well. What I mean is `.s2i/bin/assemble` needs to work with `.s2i/bin/save-artifacts`. See a Spring Boot w/Gradle example here [0]. [0] https://github.com/pylejowdmn/springboot-gradle-s2i/tree/master/.s2i/bin

Re: Q: Refer to runtime properties from within "templates"?

2017-10-20 Thread Louis Santillan
Terminology: I tend to call the YAML/JSON files used in `oc apply -f ...`: YAML Files, Object Files, Object Definition Files, API Object Files. OpenShift also has multiple concepts of Template Files in the form of jinja files (which produce YAML Files) and multiple API Object Files in a single file

Re: OpenShift master keeps consuming lots and memory and swapping

2017-10-20 Thread Louis Santillan
Firstly, leaving swap enabled is an anti-pattern in general [0] as OpenShift is then unable to recognize OOM conditions until performance is thoroughly degraded. Secondly, we generally recommend to our customers that they have at least 20GB [1] for Masters. I've seen many customers go far past th

Re: Hard Disk is full because of OpenShift Origin

2017-10-28 Thread Louis Santillan
To run `oc adm prune` (formerly `oadm prune`) you need a real user (not an service account, like `system:admin`) with `cluster-admin` or `system:image-pruner` permission [0]. [0] https://docs.openshift.com/container-platform/3.6/admin_guide/pruning_resources.html#pruning-images _

Re: Origin 3.6 update master certificate issue

2017-10-30 Thread Louis Santillan
Try this solution [0]. It mentions metrics but the general procedure should also work for registry-console. [0] https://docs.openshift.com/container-platform/3.6/admin_solutions/certificate_management.html#change-app-cert-to-ca-signed-cert ___ LOU

Re: confusion over storage for logging

2017-11-01 Thread Louis Santillan
I have an active PR for that in the Scaling Performance Section [0][1][2]. Once it lands, I plan to add more references to that section from the Registry, Metrics, & Logging install docs. [0] https://github.com/openshift/openshift-docs/pull/6033 [1] https://github.com/tmorriso-rh/openshift-docs/b

Re: Logging seems to be working, but no logs are collected

2017-11-02 Thread Louis Santillan
Tim, This KCS may also be of use to you [0]. [0] https://access.redhat.com/solutions/3220401 ___ LOUIS P. SANTILLAN SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS Red Hat Consulting, NA US WEST lpsan...@gmail.com

Re: Using Environment Variables within context.xml - Tomcat 8 Source 2 Image

2018-01-17 Thread Louis Santillan
David, Try adding `env.` to your variables (e.g. `${env.MAPPING_JNDI}`) [0]. You can also verify that the vars are set the way you expect using `oc rsh ...` or `oc debug ...` (in the case of a failed pod). [0] https://access.redhat.com/solutions/3190862 _

Re: Using Environment Variables within context.xml - Tomcat 8 Source 2 Image

2018-01-18 Thread Louis Santillan
correct environment variable and all variables had been set as expected. > > David > > > On Thursday, 18 January 2018, 02:22:24 GMT, Louis Santillan < > lsant...@redhat.com> wrote: > > > David, > > Try adding `env.` to your variables (e.g. `${env.MAPPING_

Re: Using Environment Variables within context.xml - Tomcat 8 Source 2 Image

2018-01-18 Thread Louis Santillan
S Red Hat Consulting, <https://www.redhat.com/> Container and PaaS Practice lsant...@redhat.com M: 3236334854 <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> On Thu, Jan 18, 2018 at 9:32 PM, Louis Sant

Re: Help using ImageStreams, DCs and ImagePullSecrets templates with a GitLab private registry (v3.6)

2018-01-19 Thread Louis Santillan
Gaurav, Alan, What is the full (redact if necessary for artifactory) output of `curl -kv https:///v2//`? I get the following headers when I naively hit ` https://registry.gitlab.com/v2/myproject/myimage/manifests/latest` 1. Content-Length: 160 2. Content-Type: application/json; chars

Re: Adding host storage during advanced installation

2018-03-20 Thread Louis Santillan
Patrick, First, I think you're misunderstanding the order of operations here just a bit. `docker-storage-setup` is part of the host preparation steps and happens on all nodes in the cluster before running the Advanced Installer. The Container and PaaS Practice's Consulting Playbooks [0] might hel

Re: Some frustrations with OpenShift

2018-03-27 Thread Louis Santillan
On Mon, Mar 26, 2018 at 1:15 PM, Clayton Coleman wrote: > > > On Mon, Mar 26, 2018 at 11:50 AM, Alfredo Palhares > wrote: > >> Hello everyone, >> >> >> I would like to share some of the frustations that I currently have with >> openshift, which is making me not consider this a base to our contai

Re: Not able to route to services

2018-03-27 Thread Louis Santillan
Isn't the default port for your Registry 5000? Try `curl -kv https://docker-registry.default.svc:5000/healthz` [0][1]. [0] https://access.redhat.com/solutions/1616953#health [1] https://docs.openshift.com/container-platform/3.7/install_config/registry/ac

Re: Where to mount the NFS volume

2018-10-04 Thread Louis Santillan
Read [0]. it describes how to create a PV from NFS. You should also be able to add storage from the web console. [0] https://docs.openshift.com/container-platform/3.10/install_config/persistent_storage/persistent_storage_nfs.html ___ LOUIS P. SAN

Re: Unable to manually reclaim an existing pv

2018-10-12 Thread Louis Santillan
Carlos, To "clean up" the PV, you need to remove the "instance data" associated with the binding with the previous PVC. There's a handful of lines that need to be deleted if you typed `oc edit pv/pv-x` (and then save the object). Using the following PV as an example, delete the `claimRef` an

Re: Architecture High Availability

2019-02-27 Thread Louis Santillan
Sergio, Some customers have a previously optimized etcd cluster(s). We can have OpenShift point at that cluster, if so desired. That is the External Etcd scenario. This can reduce significant load from the Master nodes. The other scenario is when OpenShift installs an etcd cluster on the Maste