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 <lsant...@redhat.co

Re: oc whoami bug?

2017-06-20 Thread Louis Santillan
lk to the server at all... it just prints your > current session's token > > > On Tue, Jun 20, 2017 at 2:31 PM, Louis Santillan <lsant...@redhat.com> > wrote: > >> The `oc` command always looks for the current session in >> `~/.kube/config`. It doesn't know if a sessi

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

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 <lsant...@redhat.com> > 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 cl

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

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

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: 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]

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

2017-11-03 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: 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

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 ___

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: 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
sure the pod had picked up > the 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 you

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

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]

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

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`

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.

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