apiVersion: apps/v1 kind: Deployment metadata: name: chal4-big-software namespace: ctf labels: { app: chal4-big-software } spec: replicas: 1 selector: matchLabels: { app: chal4-big-software } template: metadata: labels: { app: chal4-big-software } spec: containers: - name: app image: ctf-big-software-foundation:latest imagePullPolicy: IfNotPresent ports: - containerPort: 80 env: # PHP/Apache image; entrypoint writes $FLAG to /var/www/html/flag.txt - name: FLAG valueFrom: secretKeyRef: { name: ctf-flags, key: chal4-flag } resources: requests: { cpu: "50m", memory: "64Mi" } limits: { cpu: "500m", memory: "256Mi" } --- apiVersion: v1 kind: Service metadata: name: chal4-big-software namespace: ctf spec: selector: { app: chal4-big-software } ports: - port: 80 targetPort: 80 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: chal4-big-software namespace: ctf annotations: traefik.ingress.kubernetes.io/router.entrypoints: web spec: ingressClassName: traefik rules: - host: chal4.entysec.com http: paths: - path: / pathType: Prefix backend: service: name: chal4-big-software port: { number: 80 }