mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Merge pull request #1031 from BenTheElder/some-logs-would-be-nice
enable logging in kindnetd 🙃
This commit is contained in:
@@ -1 +1 @@
|
||||
0.5.2
|
||||
0.5.3
|
||||
|
||||
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
@@ -42,6 +43,11 @@ import (
|
||||
// TODO: improve logging & error handling
|
||||
|
||||
func main() {
|
||||
// enable logging
|
||||
klog.InitFlags(nil)
|
||||
_ = flag.Set("logtostderr", "true")
|
||||
flag.Parse()
|
||||
|
||||
// create a Kubernetes client
|
||||
config, err := rest.InClusterConfig()
|
||||
if err != nil {
|
||||
|
||||
@@ -27,7 +27,7 @@ const (
|
||||
The default CNI manifest and images are our own tiny kindnet
|
||||
*/
|
||||
|
||||
var defaultCNIImages = []string{"kindest/kindnetd:0.5.2"}
|
||||
var defaultCNIImages = []string{"kindest/kindnetd:0.5.3@sha256:bc1833b3da442bb639008dd5a62861a0419d3f64b58fce6fb38b749105232555"}
|
||||
|
||||
const defaultCNIManifest = `
|
||||
# kindnetd networking manifest
|
||||
@@ -146,7 +146,7 @@ spec:
|
||||
serviceAccountName: kindnet
|
||||
containers:
|
||||
- name: kindnet-cni
|
||||
image: kindest/kindnetd:0.5.2
|
||||
image: kindest/kindnetd:0.5.3@sha256:bc1833b3da442bb639008dd5a62861a0419d3f64b58fce6fb38b749105232555
|
||||
env:
|
||||
- name: HOST_IP
|
||||
valueFrom:
|
||||
|
||||
Reference in New Issue
Block a user