Skip to content

Instantly share code, notes, and snippets.

View dyusupov's full-sized avatar

Dmitry Yusupov dyusupov

View GitHub Profile
@dyusupov
dyusupov / gcp-edgefs-s3-delete-sync.js
Created May 29, 2019 18:18
GCP GS and EdgeFS delete synchronization via Cloud function
'use strict';
const AWS = require('aws-sdk');
const Storage = require('@google-cloud/storage');
// ======= config section =======
var GCP_ACCOUNT = "xxxxxxxx@appspot.gserviceaccount.com"; // GCP Service Account Email
var EDGEFS_PROVIDER = "gcs-p12"; // Has to match EdgeFS Cloud Provider name
var EDGEFS_ACCESS = "edgefs_access_key"; // EdgeFS tenant user S3 access key
var EDGEFS_SECRET = "edgefs_secret"; // EdgeFS tenant user S3 secret key
@dyusupov
dyusupov / Dockerfile
Last active June 3, 2019 01:57
multus dockerfile
############################################################
# Dockerfile to build Multus init container image
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu to produce amd64 binary
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y wget git
RUN wget -c https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
RUN tar xzf go1.8.linux-amd64.tar.gz
@dyusupov
dyusupov / multi-network.yaml
Created June 3, 2019 02:02
multi network with contiv and multus
############################################################
#
# Multi-homed pod network configuration:
#
# - contivk8s used for client
# - macvlan used as a backend bridge
#
# Assumptions:
#
# - arch == amd64
var assert = require('assert');
var async = require('async');
var debug = require('debug')('edgex-stream-test');
var http = require('http');
var Agent = require('agentkeepalive');
var keepaliveAgent = new Agent({
maxSockets: 1,
maxFreeSockets: 10,
timeout: 60000,