Skip to content

Instantly share code, notes, and snippets.

View christianh814's full-sized avatar
😀

Christian Hernandez christianh814

😀
View GitHub Profile
@christianh814
christianh814 / sample-deployment.yaml
Created November 29, 2023 22:51
sample-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: example
name: example
spec:
replicas: 1
selector:
@christianh814
christianh814 / readme.md
Last active September 2, 2023 19:37
Showing endpoints

Need 4.6+

Use 4.6+

wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz

Create Install config

#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
FROM registry.access.redhat.com/ubi8/ubi:8.1
RUN yum -y --disableplugin=subscription-manager -y module enable php:7.3 \
&& yum -y install --disableplugin=subscription-manager httpd php \
&& yum -y --disableplugin=subscription-manager clean all
ADD index.php /var/www/html/index.php
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \
&& mkdir /run/php-fpm \
@christianh814
christianh814 / Dockerfile.httpd
Created May 2, 2020 22:36
Sample Apache container
FROM registry.access.redhat.com/ubi8/ubi:latest
RUN yum -y install --disableplugin=subscription-manager httpd \
&& yum -y --disableplugin=subscription-manager clean all
ADD index.html /var/www/html/index.html
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \
&& chgrp -R 0 /var/log/httpd /var/run/httpd \
&& chmod -R g=u /var/log/httpd /var/run/httpd

Keybase proof

I hereby claim:

  • I am christianh814 on github.
  • I am christianh814 (https://keybase.io/christianh814) on keybase.
  • I have a public key ASAOkQxGPLoY_PZJrpuzERNKzxWZf454MsBfsFA64SNxHgo

To claim this, I am signing this object: