Last active
March 24, 2023 20:22
-
-
Save flavio-fernandes/316c4284cb039ffc32859c13ffeedc75 to your computer and use it in GitHub Desktop.
golang pod daemonset
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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: pprof | |
spec: | |
selector: | |
matchLabels: | |
name: pprof | |
template: | |
metadata: | |
labels: | |
name: pprof | |
spec: | |
securityContext: | |
runAsUser: 0 | |
tolerations: | |
- operator: Exists | |
containers: | |
- name: ovsdb-mon | |
image: quay.io/amorenoz/ovsdb-mon:latest | |
resources: {} | |
imagePullPolicy: IfNotPresent | |
volumeMounts: | |
- mountPath: /run/ovn/ | |
name: run-ovn | |
- mountPath: /run/openvswitch/ | |
name: run-ovs | |
readinessProbe: | |
exec: | |
command: | |
- ls | |
- /tmp/build_finished | |
initialDelaySeconds: 5 | |
volumes: | |
- hostPath: | |
path: /run/ovn | |
type: "" | |
name: run-ovn | |
- hostPath: | |
path: /run/openvswitch | |
type: "" | |
name: run-ovs | |
hostNetwork: true | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: network.operator.openshift.io/dpu-host | |
operator: DoesNotExist | |
- key: network.operator.openshift.io/dpu | |
operator: DoesNotExist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found it best to run this ds in its own k8 namespace. In other words:
cat gopodpprof.source