Skip to content

Instantly share code, notes, and snippets.

View nixMark's full-sized avatar
💭
🌌 Space, Final frontier.

Pacadamian Motato nixMark

💭
🌌 Space, Final frontier.
View GitHub Profile
@nixMark
nixMark / wfc.hpp
Created December 3, 2023 01:05 — forked from jdah/wfc.hpp
Wave Function Collapse
#pragma once
#include "util/types.hpp"
#include "util/std.hpp"
#include "util/ndarray.hpp"
#include "util/collections.hpp"
#include "util/rand.hpp"
#include "util/hash.hpp"
#include "util/assert.hpp"
#include "util/bitset.hpp"

install kubernetes 1.6 on centos 7.3

Install kubelet, kubeadm, docker, kubectl and kubernetes-cni

1. Install Yum Repo

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
@nixMark
nixMark / kubectl-cs.md
Created August 21, 2017 22:29 — forked from luebken/kubectl-cs.md
Kubectl Cheatsheet
# start up a cluster
KUBERNETES_PROVIDER=vagrant ./cluster/kube-up.sh

# start a simple vagrant cluster
NUM_NODES=1 KUBERNETES_PROVIDER=vagrant KUBE_ENABLE_CLUSTER_MONITORING=none KUBE_ENABLE_CLUSTER_UI=false ./cluster/kube-up.sh

# validate cluster 
./cluster/validate-cluster.sh
kubectl cluster-info
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: app
name: app
spec:
replicas: 1
template: