This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Template", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "ruby-helloworld-sample", | |
"annotations": { | |
"description": "This example shows how to create a simple ruby application in openshift origin v3", | |
"iconClass": "icon-ruby", | |
"tags": "instant-app,ruby,mysql" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getRouteHost will poll server for host field to be populated. With timout | |
func getRouteHost(c *newcmd.AppConfig, r *routeapi.Route) (*routeapi.Route, error) { | |
var route *routeapi.Route | |
c1 := make(chan string, 1) | |
go func() { | |
time.Sleep(time.Second * RoutePollTimoutSeconds) | |
c1 <- "Route creation timout" | |
}() | |
select { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global settings | |
#--------------------------------------------------------------------- | |
global | |
maxconn 20000 | |
log 127.0.0.1 local2 debug | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
user haproxy | |
group haproxy | |
daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
etcdctl --endpoint="https://172.18.5.238:2379" --cert-file=/etc/origin/master/master.etcd-client.crt --key-file=/etc/origin/master/master.etcd-client.key --ca-file=/etc/etcd/ca.crt cluster-health |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I1127 14:46:16.659777 23736 credentials.go:196] Being asked for https://auth.docker.io/token (auth.docker.io/token), trying index.docker.io/v1 for legacy behavior | |
I1127 14:46:16.659792 23736 credentials.go:201] Being asked for //index.docker.io/v1 (index.docker.io), trying docker.io for legacy behavior | |
I1127 14:46:16.659801 23736 credentials.go:217] Found secret to match //docker.io (docker.io): | |
I1127 14:46:16.659818 23736 round_trippers.go:414] GET https://auth.docker.io/token?account=asdasd&scope=repository%3Aopenshift%2Fhello-openshift%3Apull&service=registry.docker.io | |
I1127 14:46:16.659822 23736 round_trippers.go:421] Request Headers: | |
I1127 14:46:16.659825 23736 round_trippers.go:424] Authorization: Basic YXNkYXNkOmFzZGFzZA== | |
I1127 14:46:16.661433 23736 generic.go:183] GenericPLEG: Relisting | |
I1127 14:46:17.361911 23736 round_trippers.go:439] Response Status: 401 Unauthorized in 702 milliseconds | |
I1127 14:46:17.361975 23736 round_trippers.go:442] Response Headers: | |
I1127 14:46:17.36199 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-bash-4.2# oc export is ruby-ex -o yaml | |
apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
annotations: | |
openshift.io/generated-by: OpenShiftNewApp | |
creationTimestamp: null | |
generation: 1 | |
labels: | |
app: ruby-ex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rhgs3/rhgs-server-rhel7:latest | |
EXPOSE 9189 | |
EXPOSE 24007 | |
EXPOSE 24009-24108 | |
# Copy gluster_exporter | |
COPY gluster_exporter /usr/bin/gluster_exporter | |
COPY files/gluster-prometheus.service /etc/systemd/system/gluster-prometheus.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@workstation-repl summit]# oc get pods | |
NAME READY STATUS RESTARTS AGE | |
jenkins-1-build 0/1 Completed 0 3h | |
jenkins-2-8npvp 1/1 Running 0 57m | |
jenkins-2-99kcx 0/1 Evicted 0 1h | |
jenkins-2-cg6kb 0/1 Evicted 0 1h | |
jenkins-2-k29nm 0/1 Evicted 0 3h | |
nexus-v2-1-t7h9d 1/1 Running 0 3h | |
npm-jenkins-slave-1-build 0/1 Completed 0 3h | |
npm-jenkins-slave-4xbgx 0/1 Error 0 1h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global settings | |
#--------------------------------------------------------------------- | |
global | |
maxconn 20000 | |
log /dev/log local0 info | |
stats socket /var/lib/haproxy/run/haproxy.sock mode 600 level admin | |
#--------------------------------------------------------------------- | |
# common defaults that all the 'listen' and 'backend' sections will | |
# use if not designated in their block |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openshift_hosted_prometheus_deploy: true | |
openshift_prometheus_hostname=prometheus.apps.example.com | |
openshift_prometheus_alertmanager_hostname=alertmanager.apps.example.com | |
openshift_prometheus_alerts_hostname=alerts.apps.example.com | |
openshift_prometheus_storage_type: pvc | |
#openshift_prometheus_pvc_name: prometheus | |
#openshift_prometheus_pvc_size: 50Gi | |
#openshift_prometheus_pvc_access_modes: [ReadWriteOnce] | |
#openshift_prometheus_pvc_pv_selector: "" |