Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions manager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,16 @@ function main() {
echo "✓"

echo -n "○ configuring logging "
kubectl -n=default delete --ignore-not-found=true daemonset fluentd >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
until [ "$(kubectl -n=default get pods -l app=fluentd -o json | jq -j '.items | length')" -eq "0" ]; do echo -n "."; sleep 2; done
envsubst < manifests/fluentd.yaml | kubectl apply -f - >/dev/null
echo "✓"

echo -n "○ configuring metrics "
kubectl -n=default delete --ignore-not-found=true daemonset cloudwatch-agent-statsd >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
until [ "$(kubectl -n=default get pods -l name=cloudwatch-agent-statsd -o json | jq -j '.items | length')" -eq "0" ]; do echo -n "."; sleep 2; done
envsubst < manifests/metrics-server.yaml | kubectl apply -f - >/dev/null
envsubst < manifests/statsd.yaml | kubectl apply -f - >/dev/null
echo "✓"

if [[ "$CORTEX_INSTANCE_TYPE" == p* ]] || [[ "$CORTEX_INSTANCE_TYPE" == g* ]]; then
echo -n "○ configuring gpu support "
kubectl -n=kube-system delete --ignore-not-found=true daemonset nvidia-device-plugin-daemonset >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
until [ "$(kubectl -n=kube-system get pods -l name=nvidia-device-plugin-ds -o json | jq -j '.items | length')" -eq "0" ]; do echo -n "."; sleep 2; done
envsubst < manifests/nvidia.yaml | kubectl apply -f - >/dev/null
echo "✓"
fi
Expand Down
5 changes: 5 additions & 0 deletions manager/manifests/fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,15 @@ metadata:
name: fluentd
namespace: default
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
template:
metadata:
labels:
app: fluentd
hallo: dummy
spec:
serviceAccountName: fluentd
priorityClassName: fluentd
Expand Down
3 changes: 3 additions & 0 deletions manager/manifests/nvidia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ metadata:
name: nvidia-device-plugin-daemonset
namespace: kube-system
spec:

selector:
matchLabels:
name: nvidia-device-plugin-ds
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
template:
metadata:
# This annotation is deprecated. Kept here for backward compatibility
Expand Down
5 changes: 5 additions & 0 deletions manager/manifests/statsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,18 @@ metadata:
name: cloudwatch-agent-statsd
namespace: default
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
name: cloudwatch-agent-statsd
template:
metadata:
labels:
name: cloudwatch-agent-statsd
hallo: dummy
spec:
priorityClassName: statsd
containers:
Expand Down