Henry Xie 's blog
Sunday, May 12, 2019
Tip to Get Output From A Command Running Inside Pod
›
Symptom: We write a client-go program to run a simple command ie pwd inside a pod. It runs fine, No error but I don't see pwd outp...
Error: unable to upgrade connection: you must specify at least 1 of stdin, stdout, stderr
›
Symptom: We would like to run a simple comand ie pwd in a pod via client-go. It error on below part of code: err = exec.Stream(remote...
Friday, May 10, 2019
Error: cannot use "k8s.io/api/core/v1".ConfigMapVolumeSource literal (type "k8s.io/api/core/v1".ConfigMapVolumeSource) as type *"k8s.io/api/core/v1".ConfigMapVolumeSource in field value
›
Symptom: Related code: o.pgreplicamaster.Spec.Template.Spec.Volumes = []corev1.Volume{ {Name: "pgreplica-config", Volume...
Error: spec.volumes[1].configMap.name: Required value, spec.containers[0].volumeMounts[1].name: Not found
›
Symptom: We use partial yaml below to create a statefulset with mount a volume for configmap.It is successful apiVersion: apps/v1 kind...
Example of Updating ConfigMap name in Client-go
›
Option 1: o.pgreplicamaster.Spec.Template.Spec.Volumes[0].VolumeSource.ConfigMap.LocalObjectReference = corev1.LocalObjectReference{Name:...
‹
›
Home
View web version