Skip to content

Instantly share code, notes, and snippets.

@morimoto-cybozu
morimoto-cybozu / kubernetes-1.21.addendum.md
Last active October 8, 2021 12:52
Addendum to What's New in Kubernetes 1.21

Addendum to What's New in Kubernetes 1.21

Sysdig Blogの記述から資料をまとめましたが、CHANGELOGのみに記載された内容をこちらで補足します。 細かい変更は省きます。

ユーザーに(も)関係するもの

kubectlが内蔵するkustomizeのバージョン更新

kubectl kustomize によりkustomizeを呼び出してkustomization.yamlからマニフェストを作ったり、kubectl apply -k によりkustomizeの結果をK8sクラスターに適用したりすることができます。

@morimoto-cybozu
morimoto-cybozu / cluster.yaml
Last active December 5, 2019 04:37
devLinksFilter extension for Rook
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
dataDirHostPath: /var/lib/rook
mon:
count: 1
allowMultiplePerNode: false
@morimoto-cybozu
morimoto-cybozu / operator.yaml
Last active December 5, 2019 04:37
devLinksFilter extension for Rook
#################################################################################################################
# The deployment for the rook operator
# Contains the common settings for most Kubernetes deployments.
# For example, to create the rook-ceph cluster:
# kubectl create -f common.yaml
# kubectl create -f operator.yaml
# kubectl create -f cluster.yaml
#
# Also see other operator sample files for variations of operator.yaml:
# - operator-openshift.yaml: Common settings for running in OpenShift
@morimoto-cybozu
morimoto-cybozu / common.yaml
Last active December 5, 2019 04:36
devLinksFilter extension for Rook
###################################################################################################################
# Create the common resources that are necessary to start the operator and the ceph cluster.
# These resources *must* be created before the operator.yaml and cluster.yaml or their variants.
# The samples all assume that a single operator will manage a single cluster crd in the same "rook-ceph" namespace.
#
# If the operator needs to manage multiple clusters (in different namespaces), see the section below
# for "cluster-specific resources". The resources below that section will need to be created for each namespace
# where the operator needs to manage the cluster. The resources above that section do not be created again.
#
# Most of the sections are prefixed with a 'OLM' keyword which is used to build our CSV for an OLM (Operator Life Cycle manager)
@morimoto-cybozu
morimoto-cybozu / traverse.go
Last active April 25, 2019 07:31
Traverse Redfish
package main
import (
"bytes"
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
@morimoto-cybozu
morimoto-cybozu / concurrent_new.go
Created August 22, 2018 10:50
Concurrent clientv3.New()
package main
import (
"context"
"fmt"
"time"
"github.com/coreos/etcd/clientv3"
)