Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
@jayunit100
jayunit100 / predprio.go
Created April 12, 2017 13:36
struct describing predicates
type PredPriConfiguration struct {
NodeAffinity struct {
Enabled bool // the % of nodes and pods that should match. If not enabled, node affinity is disabled.
MatchProbability float64 // the % of nodes and pods that should match. Higher # -> smaller performance deficit at scale.
NumLabels int // the number of labels needed to match. Higher # -> larger performance deficit at scale.
}
... // others
}
func ReadInPredPriConfiguration() *PredPrioConfiguration {
This file has been truncated, but you can view the full file.
/Users/jvyas/work/funky-data,14
/Users/jvyas/work/funky-data/bad-dockerfile.tar,49
/Users/jvyas/work/funky-data/README.txt,6
/Users/jvyas/work/funky-data/real-world,2
/Users/jvyas/work/funky-data/real-world/prospect1,2
/Users/jvyas/work/funky-data/real-world/prospect1/ScanTests,1
/Users/jvyas/work/funky-data/real-world/prospect1/ScanTests/binary1,2
/Users/jvyas/work/funky-data/real-world/prospect1/ScanTests/binary1/Notes.txt,2
/Users/jvyas/work/funky-data/real-world/prospect1/ScanTests/binary1/test1,2
/Users/jvyas/work/funky-data/real-world/prospect1/ScanTests/binary1/test1/cglib-2.2.jar,257
kind: List
apiVersion: v1
metadata:
name: "blackduck hub"
resourceVersion: "1"
items:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-pvc
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAofi1axFpuBKcpVNQTAQt6GcImSP40g78p/xfpza58UAxTn9z6cSHtzXCg7KR
1pT52mgCyvMz+Q3HOkvx0lGLGUFVetiZ+pRwZVnYUSRAbbaR+jZUmi3UfL7Mv5XJA5wimtKmco4B
6aL4B2Yhkhj5z/PrL49wkRsSXUnMJt8FGaw8FPGL6yU/8JgkzNwkSGJkjFfZkqF0MU0TCEoeV32p
GM9ZK3GqkGFZsjqKrlvkJBliYppYJFJ8R6/Jxn2ao77+ncm9dh5gjdgIt8LSnUAXB1Xz5VFGny2X
mRjRPnHIj272vqQSsmxbnxePmhNc0uPXLxQ+52FKuCVf+kJlOJYWZQIDAQABAoIBACDbonoQ80Br
Tinfx+dT5bhCxqTCfmSms6ykbwct+/SsEBSbmHkw7FNHbaln3VwJptIezYo8YivBFsyFwY3oCu7Z
qSydqkcCO/bjjhWP5B4drmlzAiCw8W1JC6JGEZxQ3VhJKYkNs+egru5ZUrAfrvX3xptEXxKgyk3w
faDZF2DIlAJjtbAnDutC7AOvPB1gwRNVdUsn8th1lbjShPaPNo/z88FwlJ9sm/bQanpHzHSdUy30
X2Hk5K+YRM1H3cb3wpW9rSVn4iVB41WuGdkdcL/sXZgXY3Q4evpep+id4sYtvt8Q4aDMfx7Oku7K
@jayunit100
jayunit100 / blah.yaml
Created August 16, 2017 20:51
openshift-hub
---
kind: List
apiVersion: v1
items:
### CONFIG MAPS
- apiVersion: v1
data:
HUB_POSTGRES_ADMIN_PASSWORD_FILE: |
blackduck
kind: ConfigMap
@jayunit100
jayunit100 / -
Last active August 17, 2017 18:29
---
kind: List
apiVersion: v1
items:
### PRE SETUP
- apiVersion: v1
kind: ReplicationController
metadata:
name: cfssl
spec:
4,5c4
< Setting up node_exporter for nodes for extensive metrics measurement from
< Prometheus on kubernetes cluster
---
> Setting up node_exporter for helm based kubernetes installs.
8c7,9
< system. Especially in distributed system, it could get difficult to measure
---
> systems (or any systems, really).
>
Skip to content
SHOW
August 21, 2017
Setting up node_exporter for helm based kubernetes installs.
Prometheus is an open source library for collecting metrics from cloud native
systems (or any systems, really).
Especially in distributed system, it could get difficult to measure
things in one, but thanks to Prometheus, we could grab metrics from each node
Amethyst.app
App Store.app
App for Google Keep.app
App for Google Keep.appdownload
Automator.app
Bandwidth+.app
Calculator.app
Calendar.app
Camtasia 2.app
Chess.app
@jayunit100
jayunit100 / -
Created September 13, 2017 17:57
CONTAINERS=('jobrunner' 'zookeeper' 'postgres' 'webapp' 'jobrunner' 'cfssl' 'logstash' 'registration' 'documentation' 'solr' 'nginx');
VERSION="4.2.0-SNAPSHOT"
set -x
for i in "${CONTAINERS[@]}" ; do
TO_PUSH="blackducksoftware/rpacheco-hub-${i}:${VERSION}"
NEW_IMAGE="jayunit100/joel-${i}:${VERSION}"