Skip to content

Instantly share code, notes, and snippets.

// Copyright 2016 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Command caption reads an audio file and outputs the transcript for it.
package main
import (
"fmt"
"io"
@feiskyer
feiskyer / demo.sh
Created June 7, 2017 03:34
Rook.io on kubernetes with frakti
# deploy kubernetes with frakti
$ curl -sSL https://github.com/kubernetes/frakti/raw/master/cluster/allinone.sh | bash
# change default memory to 256MB, add --memory=256 at the end
$ grep ExecStart /lib/systemd/system/frakti.service
ExecStart=/usr/bin/frakti --v=3 --log-dir=/var/log/frakti --logtostderr=false --cgroup-driver=cgroupfs --listen=/var/run/frakti.sock --streaming-server-addr=%H --hyper-endpoint=127.0.0.1:22318 --memory=256
$ systemctl daemon-reload
$ systemctl restart frakti
# create rook operator
env
dpdk: dpdk-stable-17.02.1
ovs: 6b1d46253362c0bad844cedf93e22e7bf94d55dc/2.7.0?
kernel: 4.11.5-200.fc25.x86_64
1, download and install dpd
$ wget http://dpdk.org/browse/dpdk-stable/snapshot/dpdk-stable-17.02.1.zip
$ unzip dpdk-stable-17.02.1.zip
$ cd dpdk-stable-17.02.1
$ export DPDK_DIR=`pwd`
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
generation: 1
labels:
addonmanager.kubernetes.io/mode: EnsureExists
k8s-app: heapster
kubernetes.io/cluster-service: "true"
@feiskyer
feiskyer / devops_best_practices.md
Created October 30, 2018 08:51 — forked from jpswade/devops_best_practices.md
Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](https://blogs.the451group.com/opensource/2010/03/03/devops-mixing-dev-ops-agile-cloud-open-source-and-busi

#!/bin/bash
# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@feiskyer
feiskyer / aks-engine-dualstack.json
Created August 13, 2020 02:19
Dualstack Kubernetes cluster with aks-engine
{
"apiVersion": "vlabs",
"properties": {
"featureFlags": {
"enableIPv6DualStack": true
},
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.19",
"kubernetesConfig": {
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echoserver
name: echoserver
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
@feiskyer
feiskyer / calico-packet-logs.yaml
Created September 28, 2020 02:07
Grabe calico-packet logs from syslog
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
metadata:
name: calico-log
spec:
egress:
- action: Log
destination: {}
protocol: TCP
source: {}
@feiskyer
feiskyer / privatednszone-none-template.json
Created November 3, 2020 01:57
Templates to create private cluster with "none" PrivateDNSZone
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"clusterName": {
"type": "string",
"metadata": {
"description": "The name of the Managed Cluster resource."
},
"defaultValue": "demo"