Export some vars:
MY_USER=admin
MY_PASS=redhat@123
OCP_MASTER_URL=https://ocp-master.example.com:8443
If you are cluster-admin,
www.cliente.com.br/app1 | |
www.cliente.com.br/app2 | |
when HTTP_REQUEST { | |
if { ([HTTP::uri] starts_with "/app-a") } { | |
HTTP::header replace Host "app-a.apps.no.openshift.com.br" | |
set uri [string map -nocase {"/app-a/" "/"} [HTTP::uri]] | |
HTTP::uri $uri | |
pool openshift_infra_nodes | |
} |
conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig | |
listen-address=127.0.0.1 | |
strict-order | |
domain-needed | |
local=/example.com/ | |
bind-dynamic | |
resolv-file=/etc/resolv.conf.upstream | |
address=/.apps.example.com/192.168.122.5 | |
log-queries |
oc new-project test | |
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git -n test | |
oc secrets new mysecret trustore=foo.txt -n test | |
oc secrets link default mysecret -n test | |
oc volumes dc/ruby-ex -n test | |
oc volumes dc/ruby-ex --add --mount-path=/tmp/test --secret-name=mysecret --type=secret -n test |
sudo qemu-img convert -c -O qcow2 fedora-22-server.qcow2 box.img
apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
name: custom-jenkins-pipeline-build | |
spec: | |
source: | |
git: | |
uri: https://github.com/luszczynski/custom-jenkins-ose-config.git | |
type: Git | |
strategy: |
# /etc/named.conf | |
options { | |
listen-on port 53 { any; }; | |
listen-on-v6 port 53 { any; }; | |
directory "/var/named"; | |
dump-file "/var/named/data/cache_dump.db"; | |
statistics-file "/var/named/data/named_stats.txt"; | |
memstatistics-file "/var/named/data/named_mem_stats.txt"; | |
allow-query { any; }; | |
recursion yes; |
anyuid false [] false MustRunAs RunAsAny RunAsAny RunAsAny 10 | |
hostaccess false [] true MustRunAs MustRunAsRange RunAsAny RunAsAny <none> | |
hostmount-anyuid false [] true MustRunAs RunAsAny RunAsAny RunAsAny <none> | |
nonroot false [] false MustRunAs MustRunAsNonRoot RunAsAny RunAsAny <none> | |
privileged true [] true RunAsAny RunAsAny RunAsAny RunAsAny <none> | |
restricted true [] false MustRunAs RunAsAny RunAsAny RunAsAny <none> |