Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: PersistentVolume
metadata:
name: pv004
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv003
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv002
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv001
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: "[\n {\n \"apiVersion\": \"maistra.io/v1\",\n \"kind\": \"ServiceMeshControlPlane\",\n
\ \"metadata\": {\n \"name\": \"basic-install\",\n \"namespace\":
\"control-plane-namespace\"\n },\n \"spec\": {\n \"version\": \"v1.1\",\n
\ \"istio\": {\n \"gateways\": {\n \"istio-egressgateway\":
{\n \"autoscaleEnabled\": false\n },\n \"istio-ingressgateway\":
{\n \"autoscaleEnabled\": false,\n \"ior_enabled\": false\n
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// PodSetSpec defines the desired state of PodSet
@madorn
madorn / updated-exercise2
Created January 8, 2020 17:53
updated-exercise2
oc patch cockroachdb example --type='json' -p '[{"op": "replace", "path": "/spec/statefulset/replicas", "value":3}]'
@madorn
madorn / updated-exercise1
Last active January 8, 2020 17:51
updated-exercise1
apiVersion: charts.helm.k8s.io/v1alpha1
kind: Cockroachdb
metadata:
name: example
spec:
statefulset:
replicas: 1
storage:
persistentVolume:
size: 1Gi
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 02-worker-kubelet
spec:
config:
ignition:
version: 2.2.0
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 02-master-kubelet
spec:
config:
ignition:
version: 2.2.0