-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow systemd-logs to be configured via CLI
This adds a new flag `--systemd-logs-image` to the gen flags so that it can be customized via the CLI rather than needing to modify the output of gen. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
- Loading branch information
1 parent
30365d1
commit 3f6547e
Showing
13 changed files
with
152 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
component: sonobuoy | ||
name: sonobuoy-serviceaccount | ||
namespace: | ||
--- | ||
apiVersion: v1 | ||
data: | ||
config.json: | | ||
{"Description":"","UUID":"","Version":"","ResultsDir":"","Resources":null,"Filters":{"Namespaces":"","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":null,"FieldSelectors":null,"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"Server":{"bindaddress":"","bindport":0,"advertiseaddress":"","timeoutseconds":0},"Plugins":null,"PluginSearchPath":null,"Namespace":"","WorkerImage":"","ImagePullPolicy":"","ImagePullSecrets":""} | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
component: sonobuoy | ||
name: sonobuoy-config-cm | ||
namespace: | ||
--- | ||
apiVersion: v1 | ||
data: | ||
plugin-0.yaml: | | ||
sonobuoy-config: | ||
driver: DaemonSet | ||
plugin-name: systemd-logs | ||
result-format: raw | ||
spec: | ||
command: | ||
- /bin/sh | ||
- -c | ||
- /get_systemd_logs.sh && while true; do echo "Sleeping for 1h to avoid daemonset | ||
restart"; sleep 3600; done | ||
env: | ||
- name: CHROOT_DIR | ||
value: /node | ||
- name: RESULTS_DIR | ||
value: /tmp/results | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
image: custom-systemd-logs:v1.0.0 | ||
name: systemd-logs | ||
resources: {} | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- mountPath: /tmp/results | ||
name: results | ||
- mountPath: /node | ||
name: root | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
component: sonobuoy | ||
name: sonobuoy-plugins-cm | ||
namespace: | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
component: sonobuoy | ||
run: sonobuoy-master | ||
tier: analysis | ||
name: sonobuoy | ||
namespace: | ||
spec: | ||
containers: | ||
- command: | ||
- /bin/bash | ||
- -c | ||
- /sonobuoy master --no-exit=true -v 3 --logtostderr | ||
env: | ||
- name: SONOBUOY_ADVERTISE_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.podIP | ||
image: | ||
imagePullPolicy: | ||
name: kube-sonobuoy | ||
volumeMounts: | ||
- mountPath: /etc/sonobuoy | ||
name: sonobuoy-config-volume | ||
- mountPath: /plugins.d | ||
name: sonobuoy-plugins-volume | ||
- mountPath: /tmp/sonobuoy | ||
name: output-volume | ||
restartPolicy: Never | ||
serviceAccountName: sonobuoy-serviceaccount | ||
tolerations: | ||
- key: "kubernetes.io/e2e-evict-taint-key" | ||
operator: "Exists" | ||
volumes: | ||
- configMap: | ||
name: sonobuoy-config-cm | ||
name: sonobuoy-config-volume | ||
- configMap: | ||
name: sonobuoy-plugins-cm | ||
name: sonobuoy-plugins-volume | ||
- emptyDir: {} | ||
name: output-volume | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
component: sonobuoy | ||
run: sonobuoy-master | ||
name: sonobuoy-master | ||
namespace: | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
run: sonobuoy-master | ||
type: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters