snel.ansible/test/ubuntu_monitoring.yaml

24 lines
698 B
YAML

---
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
namespace: monitoring
spec:
nodeSelector:
kubernetes.io/hostname: c1.deovero.k8s.snel.com # for testing
containers:
- name: ubuntu
image: ubuntu:latest
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do date; sleep 60; done;" ]
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
# hostNetwork: true
# kubectl exec ubuntu -it -- bash
# Debug tools:
# apt-get update && apt-get -y install git inetutils-ping openssh-client iproute2 curl bind9-dnsutils
# curl --insecure https://localhost:10257/metrics -H 'Authorization: Bearer <TOKEN>'