Debian Codegraph @

contrib/openshift-template.yaml

raw symbols SCIP
1 apiVersion: v1
2 kind: Template
3 labels:
4 template: redis-exporter
5 app: redis-exporter
6 tier: redis
7 metadata:
8 annotations:
9 openshift.io/display-name: Openshift Redis Exporter deployment template
10 description: >-
11 Deploy a Redis exporter for Prometheus into a specific namespace together with image stream
12 tags: 'redis-exporter'
13 name: redis-exporter
14 parameters:
15 - name: NAME
16 description: The name of the application
17 displayName: Name
18 required: true
19 value: redis-exporter
20 - name: NAMESPACE
21 description: The namespace of the application
22 displayName: Namespace
23 required: true
24 - name: SOURCE_REPOSITORY_URL
25 description: The URL of the repository with your application source code.
26 displayName: Git Repository URL
27 required: true
28 value: 'https://github.com/oliver006/redis_exporter.git'
29 - name: SOURCE_REPOSITORY_REF
30 description: Set the branch name if you are not using master branch
31 displayName: Git Reference
32 value: master
33 required: false
34 - name: REDIS_ADDR
35 description: Set the service names of the Redis instances that you like to export
36 displayName: Redis Addresses
37 required: true
38 - name: REDIS_PASSWORD
39 description: Set the password for the Redis instances that you like to export
40 displayName: Redis Password
41 required: false
42 - name: REDIS_ALIAS
43 description: Set the service alias of the Redis instances that you like to export
44 displayName: Redis Alias
45 required: false
46 - name: REDIS_FILE
47 description: Set the Redis file that contains one or more redis nodes, separated by newline
48 displayName: Redis file
49 required: false
50 objects:
51
52 - apiVersion: v1
53 kind: ImageStream
54 metadata:
55 generation: 2
56 labels:
57 app: redis-exporter
58 name: redis-exporter
59 name: redis-exporter
60 spec:
61 dockerImageRepository: oliver006/redis_exporter
62
63 - apiVersion: v1
64 kind: DeploymentConfig
65 metadata:
66 labels:
67 app: redis-exporter
68 name: redis-exporter
69 spec:
70 replicas: 1
71 selector:
72 app: redis-exporter
73 template:
74 metadata:
75 labels:
76 app: redis-exporter
77 spec:
78 containers:
79 - image: docker-registry.default.svc:5000/${NAMESPACE}/redis-exporter
80 imagePullPolicy: Always
81 name: redis-exporter
82 ports:
83 - containerPort: 9121
84 env:
85 - name: REDIS_ADDR
86 value: "${REDIS_ADDR}"
87 - name: REDIS_PASSWORD
88 value: "${REDIS_PASSWORD}"
89 - name: REDIS_ALIAS
90 value: "${REDIS_ALIAS}"
91 - name: REDIS_FILE
92 value: "${REDIS_FILE}"
93 resources: {}
94 dnsPolicy: ClusterFirst
95 restartPolicy: Always
96 securityContext: {}
97 terminationGracePeriodSeconds: 30
98 test: false
99 triggers: []
100 status: {}
101
102 - apiVersion: v1
103 kind: Service
104 metadata:
105 labels:
106 name: redis-exporter
107 role: service
108 name: redis-exporter
109 spec:
110 ports:
111 - port: 9121
112 targetPort: 9121
113 selector:
114 app: "redis-exporter"