Skip to content

pietervogelaar/debug-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Debug app to run as pods in Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published