diff --git a/tools/deployment/network-policy/125-fluentbit.sh b/tools/deployment/network-policy/125-fluentbit.sh new file mode 120000 index 000000000..0ed92806a --- /dev/null +++ b/tools/deployment/network-policy/125-fluentbit.sh @@ -0,0 +1 @@ +../common/fluentbit.sh \ No newline at end of file diff --git a/tools/deployment/network-policy/130-fluent-logging.sh b/tools/deployment/network-policy/130-fluent-logging.sh deleted file mode 100755 index 08259c6f2..000000000 --- a/tools/deployment/network-policy/130-fluent-logging.sh +++ /dev/null @@ -1,174 +0,0 @@ -#!/bin/bash - -# Copyright 2017 The Openstack-Helm Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -#NOTE: Lint and package chart -make fluent-logging - -if [ ! -d "/var/log/journal" ]; then -tee /tmp/fluent-logging.yaml << EOF -pod: - replicas: - fluentd: 1 -monitoring: - prometheus: - enabled: true -manifests: - network_policy: true - monitoring: - prometheus: - network_policy_exporter: true -mounts: - fluentbit: - fluentbit: - volumes: - - name: runlog - hostPath: - path: /run/log - volumeMounts: - - name: runlog - mountPath: /run/log -network_policy: - prometheus-fluentd-exporter: - ingress: - - from: - - podSelector: - matchLabels: - application: prometheus - ports: - - protocol: TCP - port: 9309 - fluentd: - ingress: - - from: - - podSelector: - matchLabels: - application: fluentbit - - podSelector: - matchLabels: - application: prometheus-fluentd-exporter - - podSelector: - matchLabels: - application: keystone - - podSelector: - matchLabels: - application: heat - - podSelector: - matchLabels: - application: glance - - podSelector: - matchLabels: - application: cinder - - podSelector: - matchLabels: - application: barbican - - podSelector: - matchLabels: - application: ironic - - podSelector: - matchLabels: - application: nova - - podSelector: - matchLabels: - application: neutron - - podSelector: - matchLabels: - application: placement - ports: - - protocol: TCP - port: 24224 - - protocol: TCP - port: 24220 -EOF -helm upgrade --install fluent-logging ./fluent-logging \ - --namespace=osh-infra \ - --values=/tmp/fluent-logging.yaml -else -tee /tmp/fluent-logging.yaml << EOF -pod: - replicas: - fluentd: 1 -monitoring: - prometheus: - enabled: true -manifests: - network_policy: true - monitoring: - prometheus: - network_policy_exporter: true -network_policy: - prometheus-fluentd-exporter: - ingress: - - from: - - podSelector: - matchLabels: - application: prometheus - ports: - - protocol: TCP - port: 9309 - fluentd: - ingress: - - from: - - podSelector: - matchLabels: - application: fluentbit - - podSelector: - matchLabels: - application: prometheus-fluentd-exporter - - podSelector: - matchLabels: - application: keystone - - podSelector: - matchLabels: - application: heat - - podSelector: - matchLabels: - application: glance - - podSelector: - matchLabels: - application: cinder - - podSelector: - matchLabels: - application: barbican - - podSelector: - matchLabels: - application: ironic - - podSelector: - matchLabels: - application: nova - - podSelector: - matchLabels: - application: neutron - - podSelector: - matchLabels: - application: placement - ports: - - protocol: TCP - port: 24224 - - protocol: TCP - port: 24220 -EOF -helm upgrade --install fluent-logging ./fluent-logging \ - --namespace=osh-infra \ - --values=/tmp/fluent-logging.yaml -fi - -#NOTE: Wait for deploy -./tools/deployment/common/wait-for-pods.sh osh-infra - -#NOTE: Validate Deployment info -helm status fluent-logging diff --git a/tools/deployment/network-policy/130-fluentd-daemonset.sh b/tools/deployment/network-policy/130-fluentd-daemonset.sh new file mode 120000 index 000000000..af568c5cf --- /dev/null +++ b/tools/deployment/network-policy/130-fluentd-daemonset.sh @@ -0,0 +1 @@ +../common/fluentd-daemonset.sh \ No newline at end of file diff --git a/tools/deployment/network-policy/135-fluentd-deployment.sh b/tools/deployment/network-policy/135-fluentd-deployment.sh new file mode 120000 index 000000000..937b5f63b --- /dev/null +++ b/tools/deployment/network-policy/135-fluentd-deployment.sh @@ -0,0 +1 @@ +../osh-infra-logging/070-fluentd-deployment.sh \ No newline at end of file diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index ee50c4bd0..a79dc25ce 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -196,7 +196,9 @@ - ./tools/deployment/network-policy/100-grafana.sh - ./tools/deployment/network-policy/110-nagios.sh - ./tools/deployment/network-policy/120-elasticsearch.sh - - ./tools/deployment/network-policy/130-fluent-logging.sh + - ./tools/deployment/network-policy/125-fluentbit.sh + - ./tools/deployment/network-policy/130-fluentd-daemonset.sh + - ./tools/deployment/network-policy/135-fluentd-deployment.sh - ./tools/deployment/network-policy/140-kibana.sh - ./tools/deployment/network-policy/openstack-exporter.sh - ./tools/deployment/network-policy/901-test-networkpolicy.sh