-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FWI-4610 - /vv/add pod metadata support (#80)
* expose pod-metadata info * bump lib minor versions * fix comments * add test assertion * make assertions explicit
- Loading branch information
1 parent
984bb05
commit 3185c7f
Showing
14 changed files
with
418 additions
and
98 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,31 @@ | ||
{ | ||
"apiVersion": "batch/v1", | ||
"kind": "CronJob", | ||
"metadata": { | ||
"name": "hello" | ||
}, | ||
"spec": { | ||
"schedule": "* * * * *", | ||
"jobTemplate": { | ||
"spec": { | ||
"template": { | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "hello", | ||
"image": "busybox:1.28", | ||
"imagePullPolicy": "IfNotPresent", | ||
"command": [ | ||
"/bin/sh", | ||
"-c", | ||
"date; echo Hello from the Kubernetes cluster" | ||
] | ||
} | ||
], | ||
"restartPolicy": "OnFailure" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,69 @@ | ||
{ | ||
"apiVersion": "apps/v1", | ||
"kind": "DaemonSet", | ||
"metadata": { | ||
"name": "fluentd-elasticsearch", | ||
"namespace": "kube-system", | ||
"labels": { | ||
"k8s-app": "fluentd-logging" | ||
} | ||
}, | ||
"spec": { | ||
"selector": { | ||
"matchLabels": { | ||
"name": "fluentd-elasticsearch" | ||
} | ||
}, | ||
"template": { | ||
"metadata": { | ||
"labels": { | ||
"name": "fluentd-elasticsearch" | ||
} | ||
}, | ||
"spec": { | ||
"tolerations": [ | ||
{ | ||
"key": "node-role.kubernetes.io/control-plane", | ||
"operator": "Exists", | ||
"effect": "NoSchedule" | ||
}, | ||
{ | ||
"key": "node-role.kubernetes.io/master", | ||
"operator": "Exists", | ||
"effect": "NoSchedule" | ||
} | ||
], | ||
"containers": [ | ||
{ | ||
"name": "fluentd-elasticsearch", | ||
"image": "quay.io/fluentd_elasticsearch/fluentd:v2.5.2", | ||
"resources": { | ||
"limits": { | ||
"memory": "200Mi" | ||
}, | ||
"requests": { | ||
"cpu": "100m", | ||
"memory": "200Mi" | ||
} | ||
}, | ||
"volumeMounts": [ | ||
{ | ||
"name": "varlog", | ||
"mountPath": "/var/log" | ||
} | ||
] | ||
} | ||
], | ||
"terminationGracePeriodSeconds": 30, | ||
"volumes": [ | ||
{ | ||
"name": "varlog", | ||
"hostPath": { | ||
"path": "/var/log" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.