Skip to content

Instantly share code, notes, and snippets.

View radu-matei's full-sized avatar

Radu Matei radu-matei

View GitHub Profile
FROM ubuntu:16.04
LABEL maintainer Radu Matei <[email protected]>
# Versions of kubectl and helm
ENV KUBE_VERSION="v1.8.0"
ENV HELM_VERSION="v2.6.2"
RUN apt-get update && apt-get install -y \
curl
apiVersion: v1
kind: Pod
metadata:
name: mc1
spec:
volumes:
- name: html
emptyDir: {}
containers:
- name: 1st
bash -c while true ; do /usr/bin/kubelet --docker-disable-shared-pid=false --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt --cadvisor-port=0 --cgroup-driver=cgroupfs --fail-swap-on=false ; sleep 5; done &
{
while true ; do /usr/bin/kubelet --docker-disable-shared-pid=false --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt --cadvisor-port=0 --cgroup-drive
kube-toolkit
-------------
Intro
-----
- toolkit for creating gRPC-based CLI and web tools for Kubernetes, and it should be used as a starting point in new awesome tools for Kubernetes
- CLI tooks: kubectl, helm draft
- web tools: Kubernetes UI Dashboard, Monocular
{{- if .Values.ingress.enabled -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"

run.sh

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -jar helloworld-jar-with-dependencies.jar

launch.json

@radu-matei
radu-matei / vsts_git.go
Created July 14, 2018 23:53
VSTS git events in Go
// GitPushEvent models the data for a git.push event
type GitPushEvent struct {
Commits []struct {
CommitID string `json:"commitId"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
Date time.Time `json:"date"`
} `json:"author"`

Keybase proof

I hereby claim:

  • I am radu-matei on github.
  • I am matei_radu (https://keybase.io/matei_radu) on keybase.
  • I have a public key ASC5EpeI47yN5OvnJWZN-QP7h3_kMahsL0pTAK65n9zTRAo

To claim this, I am signing this object:

using System;
using Newtonsoft.Json;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using NUlid;
using Cnab.Bundle;
namespace Cnab.Runtime
{
public class Claim
@radu-matei
radu-matei / Operation.cs
Created February 24, 2019 01:15
WIP CNAB Operation in .NET - currently removing, but may need later.
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace Cnab.Runtime
{
public class Operation
{
[JsonProperty("installation_name")]
public string Installation { get; set; }