Created
March 26, 2019 14:13
-
-
Save debianmaster/e57e52f2c126e09ca66554fd27b2b34e to your computer and use it in GitHub Desktop.
goldpinger.yaml
This file contains hidden or 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: goldpinger | |
| spec: | |
| updateStrategy: | |
| type: RollingUpdate | |
| selector: | |
| matchLabels: | |
| app: goldpinger | |
| version: "1.5.0" | |
| template: | |
| metadata: | |
| labels: | |
| app: goldpinger | |
| version: "1.5.0" | |
| spec: | |
| containers: | |
| - name: goldpinger | |
| env: | |
| - name: HOST | |
| value: "0.0.0.0" | |
| - name: PORT | |
| value: "80" | |
| # injecting real hostname will make for easier to understand graphs/metrics | |
| - name: HOSTNAME | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: spec.nodeName | |
| # podIP is used to select a randomized subset of nodes to ping. | |
| - name: POD_IP | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: status.podIP | |
| image: "docker.io/bloomberg/goldpinger:1.5.0" | |
| ports: | |
| - containerPort: 80 | |
| name: http | |
| readinessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: 80 | |
| initialDelaySeconds: 20 | |
| periodSeconds: 5 | |
| livenessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: 80 | |
| initialDelaySeconds: 20 | |
| periodSeconds: 5 | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: goldpinger | |
| labels: | |
| app: goldpinger | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 80 | |
| nodePort: 30080 | |
| name: http | |
| selector: | |
| app: goldpinger | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: default | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: ClusterRole | |
| name: view | |
| subjects: | |
| - kind: ServiceAccount | |
| name: default | |
| namespace: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment