github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/fakegitserver.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 namespace: default 5 name: fakegitserver 6 labels: 7 app: fakegitserver 8 spec: 9 selector: 10 matchLabels: 11 app: fakegitserver 12 replicas: 1 13 template: 14 metadata: 15 labels: 16 app: fakegitserver 17 spec: 18 containers: 19 - name: fakegitserver 20 image: localhost:5001/fakegitserver 21 args: 22 # These are self-signed certs. As they are not tied to any actual HTTPS 23 # Certificate Authority chain-of-trust, they are "junk". This is fine 24 # for our purposes because we just want to use them to have URLs that 25 # start with "https://..." which we pass into the git CLI (used by both 26 # sub and clonerefs). 27 - --cert=/var/run/ko/server.crt 28 - --key=/var/run/ko/server.key 29 ports: 30 - containerPort: 8888 31 - containerPort: 4443 32 --- 33 apiVersion: v1 34 kind: Service 35 metadata: 36 labels: 37 app: fakegitserver 38 namespace: default 39 name: fakegitserver 40 spec: 41 ports: 42 - name: main 43 port: 80 44 targetPort: 8888 45 protocol: TCP 46 - name: https 47 port: 443 48 targetPort: 4443 49 protocol: TCP 50 - name: metrics 51 port: 9090 52 protocol: TCP 53 selector: 54 app: fakegitserver 55 type: ClusterIP