How to use naked GoDaddy domain with OpenShift hosting? [closed]

Solution 01) Sign up to cloudflare 02) Set these cname rules: mydomain.com > appname-username.rhcloud.com (this will utilise ‘cname flattening‘) www > mydomain.com 03) Set page rules: http://www.mydomain.com/* > http://mydomain.com/$1 04) Set alias in OpenShift to mydomain.com 05) Make sure GoDaddy DNS record doesn’t have any conflicting cname or A record set up. 06) Let it … Read more

What is the different between openshift deploymentconfig and kubernetes deployment

A DeploymentConfig (DC) in OpenShift is more or less equivalent to a Kubernetes Deployment, nowadays. Main difference (besides that one is using ReplicationController and the other using ReplicaSet as you rightly pointed out) is that there are a few things you can do with a DeploymentConfig (around triggers) that you can’t do with a Deployment. … Read more

Separate back-end and front-end apps on same domain?

You are gonna to dig yourself… deep 🙂 Simplest and most clean approach with no any doubt is creating a single application serving data for both, BE and FE, where you differ response (JSON vs HTML) by the URL, pseudo routes: GET /products/:id controllers.Frontend.productHtml(id) GET /backend/products/:id controllers.Backend.productJson(id) Benefits: single deployment (let’s say to Heroku) name … Read more

Can I connect one service account to multiple namespaces in Kubernetes?

You can simply reference a ServiceAccount from another namespace in the RoleBinding: apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: name: pod-reader namespace: ns2 rules: – apiGroups: [“”] resources: [“pods”] verbs: [“get”, “list”, “watch”] — apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: pod-reader-from-ns1 namespace: ns2 roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: pod-reader subjects: – kind: ServiceAccount name: ns1-service-account namespace: … Read more

Helm: could not find tiller

Try deleting your cluster tiller kubectl get all –all-namespaces | grep tiller kubectl delete deployment tiller-deploy -n kube-system kubectl delete service tiller-deploy -n kube-system kubectl get all –all-namespaces | grep tiller Initialise it again: helm init Now add the service account: kubectl create serviceaccount –namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule –clusterrole=cluster-admin –serviceaccount=kube-system:tiller kubectl patch … Read more

Using Keycloak behind a reverse proxy: Could not open Admin loginpage because mixed Content

This sounds somehow like a duplicate of Keycloak Docker behind loadbalancer with https fails Set the request headers X-Forwarded-For and X-Forwarded-Proto in nginx. Then you have to configure Keycloak (Wildfly, Undertow) to work together with the SSL terminating reverse proxy (aka load balancer). See http://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy for a detailed description. The point is that nginx is … Read more

HTTPS request in NodeJS

Comparing what headers curl and node sent, i found that adding: headers: { accept: ‘*/*’ } to options fixed it. To see which headers curl sends, you can use the -v argument. curl -vIX GET https://openshift.redhat.com/broker/rest/api In node, just console.log(req._headers) after req.end(). Quick tip: You can use https.get(), instead of https.request(). It will set method … Read more

What does “#!/bin/env” mean (at the top of a node.js script)?

The full line from your example is: #!/bin/env node This simply means that the script should be executed with the first executable named ‘node’ that’s found in your current PATH. The shebang (#!) at the start means execute the script with what follows. /bin/env is a standard unix program that looks at your current environment. … Read more

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

First line of the error message describes the error type: “PDOException”. The next line displays PDO::errorInfo, i.e: SQLSTATE error code (a five characters alphanumeric identifier defined in the ANSI SQL standard). Driver-specific error code. Driver-specific error message. “HY000” is a general server error (see Server Error Codes and Messages in MySQL docs). “2002” is MySQL … Read more