Skip to content

Instantly share code, notes, and snippets.

View rohithzr's full-sized avatar
🏠
Working from home

Rohit Hazra rohithzr

🏠
Working from home
View GitHub Profile
@rohithzr
rohithzr / log-with-istio
Created July 26, 2019 16:13
log-with-istio
kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T18:55:03Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
~/work/keystone/data-platform/platform-architecture/kubeflow   master ●  kubectl get sc
NAME PROVISIONER AGE
airflow-01 example.com/aws-efs 39d
ebs-gp2 (default) ebs.csi.aws.com 3d
keystonehub example.com/aws-efs 3d
kubeflow example.com/aws-efs 3d20h
~/work/keystone/data-platform/platform-architecture/kubeflow   master ●  kubectl get nodes
...
module "dcos" {
source = "dcos-terraform/dcos/aws"
version = "~> 0.2.0"
dcos_instance_os = "centos_7.5"
cluster_name = "${var.cluster_name}"
...
#other config of the module
(AT BEGINNING OF FILE)
waiting 5 seconds for dns
calculated initial discovery members: 9.0.21.130:5000
Starting Neo4j.
2019-04-25 19:23:05.767+0000 INFO No SSL certificate found, generating a self-signed certificate..
2019-04-25 19:23:06.494+0000 INFO Starting...
2019-04-25 19:23:07.379+0000 INFO Bolt enabled on 0.0.0.0:7687.
2019-04-25 19:23:07.399+0000 INFO Initiating metrics...
2019-04-25 19:23:39.930+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@56290dd0' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@56290dd0' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@56290dd0' was successfully initialized, but failed to start. Please see attached ca
@rohithzr
rohithzr / txt
Created April 3, 2019 12:18
temp-email
rohithzr@live.com
vishalvr@2595@gmail.com
apiVersion: "v1"
kind: "Service"
metadata:
labels:
run: k8s-api-proxy
name: k8s-api-proxy
namespace: default
spec:
ports:
- port: 8118
FROM alpine
RUN apk add -U curl privoxy jq && \
mv /etc/privoxy/templates /etc/privoxy-templates && \
rm -rf /var/cache/apk/* /etc/privoxy/* && \
mv /etc/privoxy-templates /etc/privoxy/templates
ADD --chown=privoxy:privoxy config \
/etc/privoxy/
ADD --chown=privoxy:privoxy k8s-only.action \
/etc/privoxy/
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---
kind: ConfigMap
apiVersion: v1
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---
@rohithzr
rohithzr / nvmroot.sh
Created February 19, 2019 09:46
nvm as root
#!/bin/bash
sudo su
groupadd nvm
usermod -aG nvm $1
mkdir /opt/nvm
chown :nvm /opt/nvm
chmod -R g+ws /opt/nvm
git clone https://github.com/creationix/nvm.git /opt/nvm
cat <<EOT >> /etc/profile.d/nvm.sh