Merge pull request #13042 from olemarkus/automated-cherry-pick-of-#13038-origin-release-1.23

Automated cherry pick of #13038: Kube components log to stdout
This commit is contained in:
Kubernetes Prow Robot 2021-12-27 23:18:18 -08:00 committed by GitHub
commit a4cc5af9b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 0 deletions

View File

@ -660,6 +660,7 @@ func (b *KubeAPIServerBuilder) buildPod(kubeAPIServer *kops.KubeAPIServerConfig)
container.Command = []string{"/go-runner"}
container.Args = []string{
"--log-file=/var/log/kube-apiserver.log",
"--also-stdout",
"/usr/local/bin/kube-apiserver",
}
container.Args = append(container.Args, sortedStrings(flags)...)

View File

@ -242,6 +242,7 @@ func (b *KubeControllerManagerBuilder) buildPod(kcm *kops.KubeControllerManagerC
container.Command = []string{"/go-runner"}
container.Args = []string{
"--log-file=/var/log/kube-controller-manager.log",
"--also-stdout",
"/usr/local/bin/kube-controller-manager",
}
container.Args = append(container.Args, sortedStrings(flags)...)

View File

@ -198,6 +198,7 @@ func (b *KubeProxyBuilder) buildPod() (*v1.Pod, error) {
container.Command = []string{"/go-runner"}
container.Args = []string{
"--log-file=/var/log/kube-proxy.log",
"--also-stdout",
"/usr/local/bin/kube-proxy",
}
container.Args = append(container.Args, sortedStrings(flags)...)

View File

@ -256,6 +256,7 @@ func (b *KubeSchedulerBuilder) buildPod(kubeScheduler *kops.KubeSchedulerConfig)
container.Command = []string{"/go-runner"}
container.Args = []string{
"--log-file=/var/log/kube-scheduler.log",
"--also-stdout",
"/usr/local/bin/kube-scheduler",
}
container.Args = append(container.Args, sortedStrings(flags)...)

View File

@ -15,6 +15,7 @@ contents: |
containers:
- args:
- --log-file=/var/log/kube-apiserver.log
- --also-stdout
- /usr/local/bin/kube-apiserver
- --allow-privileged=true
- --anonymous-auth=false

View File

@ -11,6 +11,7 @@ contents: |
containers:
- args:
- --log-file=/var/log/kube-controller-manager.log
- --also-stdout
- /usr/local/bin/kube-controller-manager
- --allocate-node-cidrs=true
- --attach-detach-reconcile-sync-period=1m0s

View File

@ -13,6 +13,7 @@ contents: |
containers:
- args:
- --log-file=/var/log/kube-proxy.log
- --also-stdout
- /usr/local/bin/kube-proxy
- --cluster-cidr=100.96.0.0/11
- --conntrack-max-per-core=131072

View File

@ -11,6 +11,7 @@ contents: |
containers:
- args:
- --log-file=/var/log/kube-scheduler.log
- --also-stdout
- /usr/local/bin/kube-scheduler
- --authentication-kubeconfig=/var/lib/kube-scheduler/kubeconfig
- --authorization-kubeconfig=/var/lib/kube-scheduler/kubeconfig