github.com/opendevstack/tailor@v1.3.5-0.20220119161809-cab064e60a67/internal/test/e2e/testdata/deploymentconfig/1/template.yml (about) 1 apiVersion: v1 2 kind: Template 3 parameters: 4 - name: TAILOR_NAMESPACE 5 required: true 6 objects: 7 - apiVersion: v1 8 kind: Secret 9 metadata: 10 name: foo-user 11 type: kubernetes.io/basic-auth 12 data: 13 password: c2VjcmV0 14 username: dXNlcg== 15 - apiVersion: apps.openshift.io/v1 16 kind: DeploymentConfig 17 metadata: 18 labels: 19 app: foo 20 name: foo 21 spec: 22 replicas: 1 23 revisionHistoryLimit: 10 24 selector: 25 app: foo 26 strategy: 27 activeDeadlineSeconds: 21600 28 resources: {} 29 rollingParams: 30 intervalSeconds: 1 31 maxSurge: 25% 32 maxUnavailable: 25% 33 timeoutSeconds: 600 34 updatePeriodSeconds: 1 35 type: Rolling 36 template: 37 metadata: 38 labels: 39 app: foo 40 spec: 41 containers: 42 - env: 43 - name: FOO 44 value: abc 45 - name: BAZ 46 value: http://baz.${TAILOR_NAMESPACE}.svc:8080/ 47 image: docker-registry.default.svc:5000/${TAILOR_NAMESPACE}/foo:latest 48 imagePullPolicy: Always 49 livenessProbe: 50 failureThreshold: 3 51 httpGet: 52 path: "/health" 53 port: 8080 54 scheme: HTTP 55 initialDelaySeconds: 6 56 periodSeconds: 10 57 successThreshold: 1 58 timeoutSeconds: 3 59 name: foo 60 ports: 61 - containerPort: 8080 62 protocol: TCP 63 readinessProbe: 64 failureThreshold: 3 65 httpGet: 66 path: "/health" 67 port: 8080 68 scheme: HTTP 69 initialDelaySeconds: 3 70 periodSeconds: 10 71 successThreshold: 1 72 timeoutSeconds: 3 73 resources: 74 limits: 75 cpu: 100m 76 memory: 128Mi 77 requests: 78 cpu: 50m 79 memory: 128Mi 80 terminationMessagePath: /dev/termination-log 81 terminationMessagePolicy: File 82 dnsPolicy: ClusterFirst 83 restartPolicy: Always 84 schedulerName: default-scheduler 85 securityContext: {} 86 terminationGracePeriodSeconds: 30 87 test: false 88 triggers: 89 - type: ConfigChange