Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
74a3b77c
Commit
74a3b77c
authored
Dec 01, 2016
by
Mik Vyatskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unified gcp fluentd image for gci and cvm
parent
aef15aa8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
74 deletions
+7
-74
release.sh
build-tools/lib/release.sh
+0
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+1
-1
fluentd-gcp-gci.yaml
cluster/saltbase/salt/fluentd-gcp-gci/fluentd-gcp-gci.yaml
+0
-62
fluentd-gcp.yaml
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
+6
-10
No files found.
build-tools/lib/release.sh
View file @
74a3b77c
...
@@ -317,7 +317,6 @@ function kube::release::package_kube_manifests_tarball() {
...
@@ -317,7 +317,6 @@ function kube::release::package_kube_manifests_tarball() {
cp
"
${
salt_dir
}
/cluster-autoscaler/cluster-autoscaler.manifest"
"
${
dst_dir
}
/"
cp
"
${
salt_dir
}
/cluster-autoscaler/cluster-autoscaler.manifest"
"
${
dst_dir
}
/"
cp
"
${
salt_dir
}
/fluentd-es/fluentd-es.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/fluentd-es/fluentd-es.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/fluentd-gcp/fluentd-gcp.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/fluentd-gcp/fluentd-gcp.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/fluentd-gcp-gci/fluentd-gcp-gci.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/kube-registry-proxy/kube-registry-proxy.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/kube-registry-proxy/kube-registry-proxy.yaml"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/kube-proxy/kube-proxy.manifest"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/kube-proxy/kube-proxy.manifest"
"
${
release_stage
}
/"
cp
"
${
salt_dir
}
/etcd/etcd.manifest"
"
${
dst_dir
}
"
cp
"
${
salt_dir
}
/etcd/etcd.manifest"
"
${
dst_dir
}
"
...
...
cluster/gce/gci/configure-helper.sh
View file @
74a3b77c
...
@@ -1109,7 +1109,7 @@ function start-fluentd {
...
@@ -1109,7 +1109,7 @@ function start-fluentd {
echo
"Start fluentd pod"
echo
"Start fluentd pod"
if
[[
"
${
ENABLE_NODE_LOGGING
:-}
"
==
"true"
]]
;
then
if
[[
"
${
ENABLE_NODE_LOGGING
:-}
"
==
"true"
]]
;
then
if
[[
"
${
LOGGING_DESTINATION
:-}
"
==
"gcp"
]]
;
then
if
[[
"
${
LOGGING_DESTINATION
:-}
"
==
"gcp"
]]
;
then
cp
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/fluentd-gcp
-gci
.yaml"
/etc/kubernetes/manifests/
cp
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/fluentd-gcp.yaml"
/etc/kubernetes/manifests/
elif
[[
"
${
LOGGING_DESTINATION
:-}
"
==
"elasticsearch"
&&
"
${
KUBERNETES_MASTER
:-}
"
!=
"true"
]]
;
then
elif
[[
"
${
LOGGING_DESTINATION
:-}
"
==
"elasticsearch"
&&
"
${
KUBERNETES_MASTER
:-}
"
!=
"true"
]]
;
then
# Running fluentd-es on the master is pointless, as it can't communicate
# Running fluentd-es on the master is pointless, as it can't communicate
# with elasticsearch from there in the default configuration.
# with elasticsearch from there in the default configuration.
...
...
cluster/saltbase/salt/fluentd-gcp-gci/fluentd-gcp-gci.yaml
deleted
100644 → 0
View file @
aef15aa8
# This config should be kept as similar as possible to the one at
# cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
fluentd-cloud-logging
namespace
:
kube-system
labels
:
k8s-app
:
fluentd-logging
spec
:
dnsPolicy
:
Default
containers
:
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.28
command
:
-
'
/bin/sh'
-
'
-c'
# This is pretty hacky, but ruby relies on libsystemd's native code, and
# the ubuntu:16.04 libsystemd doesn't play nice with the journal on GCI
# hosts. Work around the problem by copying in the host's libsystemd.
-
'
rm
/lib/x86_64-linux-gnu/libsystemd*
&&
cp
/host/lib/libsystemd*
/lib/x86_64-linux-gnu/
&&
/usr/sbin/td-agent
-q
-c
/etc/td-agent/td-agent-journal.conf'
resources
:
limits
:
memory
:
200Mi
requests
:
# Any change here should be accompanied by a proportional change in CPU
# requests of other per-node add-ons (e.g. kube-proxy).
cpu
:
100m
memory
:
200Mi
env
:
# Jemalloc is a widely used way to decrease memory consumption
# in Ruby world. It's a better implementation of malloc(3).
-
name
:
"
LD_PRELOAD"
value
:
"
/opt/td-agent/embedded/lib/libjemalloc.so"
# This is quite hacky, but forces Ruby GC to be ivoked more often
# resulting in lower memory consumption, which is important for us.
-
name
:
"
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR"
value
:
"
0.9"
volumeMounts
:
-
name
:
varlog
mountPath
:
/var/log
-
name
:
varlibdockercontainers
mountPath
:
/var/lib/docker/containers
readOnly
:
true
-
name
:
journaldir
mountPath
:
/var/log/journal
-
name
:
libsystemddir
mountPath
:
/host/lib
terminationGracePeriodSeconds
:
30
volumes
:
-
name
:
varlog
hostPath
:
path
:
/var/log
-
name
:
varlibdockercontainers
hostPath
:
path
:
/var/lib/docker/containers
-
name
:
journaldir
hostPath
:
path
:
/var/log/journal
-
name
:
libsystemddir
hostPath
:
path
:
/usr/lib64
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
View file @
74a3b77c
...
@@ -11,7 +11,7 @@ spec:
...
@@ -11,7 +11,7 @@ spec:
dnsPolicy
:
Default
dnsPolicy
:
Default
containers
:
containers
:
-
name
:
fluentd-cloud-logging
-
name
:
fluentd-cloud-logging
image
:
gcr.io/google_containers/fluentd-gcp:1.2
8
image
:
gcr.io/google_containers/fluentd-gcp:1.2
9
resources
:
resources
:
limits
:
limits
:
memory
:
200Mi
memory
:
200Mi
...
@@ -23,20 +23,14 @@ spec:
...
@@ -23,20 +23,14 @@ spec:
env
:
env
:
-
name
:
FLUENTD_ARGS
-
name
:
FLUENTD_ARGS
value
:
-q
value
:
-q
# Jemalloc is a widely used way to decrease memory consumption
# in Ruby world. It's a better implementation of malloc(3).
-
name
:
"
LD_PRELOAD"
value
:
"
/opt/td-agent/embedded/lib/libjemalloc.so"
# This is quite hacky, but forces Ruby GC to be ivoked more often
# resulting in lower memory consumption, which is important for us.
-
name
:
"
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR"
value
:
"
0.9"
volumeMounts
:
volumeMounts
:
-
name
:
varlog
-
name
:
varlog
mountPath
:
/var/log
mountPath
:
/var/log
-
name
:
varlibdockercontainers
-
name
:
varlibdockercontainers
mountPath
:
/var/lib/docker/containers
mountPath
:
/var/lib/docker/containers
readOnly
:
true
readOnly
:
true
-
name
:
libsystemddir
mountPath
:
/host/lib
terminationGracePeriodSeconds
:
30
terminationGracePeriodSeconds
:
30
volumes
:
volumes
:
-
name
:
varlog
-
name
:
varlog
...
@@ -45,4 +39,6 @@ spec:
...
@@ -45,4 +39,6 @@ spec:
-
name
:
varlibdockercontainers
-
name
:
varlibdockercontainers
hostPath
:
hostPath
:
path
:
/var/lib/docker/containers
path
:
/var/lib/docker/containers
-
name
:
libsystemddir
hostPath
:
path
:
/usr/lib64
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment