Sign inSign up

pietervogelaar/debug-app

By pietervogelaar

•Updated 7 months ago

Debug app to run as pods in Kubernetes

Image
1

50K+

pietervogelaar/debug-app repository overview

⁠debug-app

Debug app to run as pods in Kubernetes.

---
apiVersion: v1
kind: Service
metadata:
  name: debug-app
  namespace: default
  labels:
    app: debug-app
spec:
  selector:
    app: debug-app
  ports:
  - name: app-port
    port: 80
    targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: debug-app
  namespace: default
  labels:
    app: debug-app
spec:
  replicas: 6
  selector:
    matchLabels:
      app: debug-app
  template:
    metadata:
      labels:
        app: debug-app
    spec:
      containers:
      - name: debug-app
        imagePullPolicy: Always
        image: pietervogelaar/debug-app:latest
        ports:
        - containerPort: 8080
      affinity:
        podAntiAffinity:
          # Preferably do not run more than one pod on the same node
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: app
                  operator: In
                  values:
                  - debug-app
              topologyKey: kubernetes.io/hostname
            weight: 100

Tag summary

Content type

Image

Digest

sha256:84cda62f9…

Size

42.4 MB

Last updated

7 months ago

docker pull pietervogelaar/debug-app