Created
April 1, 2020 17:31
-
-
Save mhrivnak/eea31f94939e6af4670d969973157226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: cincinnati | |
name: cincinnati | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: cincinnati | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
template: | |
metadata: | |
labels: | |
app: cincinnati | |
deploymentconfig: cincinnati | |
spec: | |
containers: | |
- args: | |
- -c | |
- /etc/configs/gb.toml | |
command: | |
- /usr/bin/graph-builder | |
env: | |
- name: RUST_BACKTRACE | |
valueFrom: | |
configMapKeyRef: | |
key: gb.rust_backtrace | |
name: cincinnati | |
image: quay.io/app-sre/cincinnati:e111b06 | |
imagePullPolicy: IfNotPresent | |
livenessProbe: | |
httpGet: | |
path: /liveness | |
port: 9080 | |
initialDelaySeconds: 3 | |
periodSeconds: 10 | |
timeoutSeconds: 3 | |
name: cincinnati-graph-builder | |
ports: | |
- containerPort: 8080 | |
name: graph-builder | |
- containerPort: 9080 | |
name: status-gb | |
readinessProbe: | |
httpGet: | |
path: /readiness | |
port: 9080 | |
initialDelaySeconds: 3 | |
periodSeconds: 10 | |
timeoutSeconds: 3 | |
resources: | |
limits: | |
cpu: 750m | |
memory: 512Mi | |
requests: | |
cpu: 350m | |
memory: 128Mi | |
volumeMounts: | |
- mountPath: /etc/configs | |
name: configs | |
readOnly: true | |
- args: | |
- -$(PE_LOG_VERBOSITY) | |
- --service.address | |
- $(ADDRESS) | |
- --service.mandatory_client_parameters | |
- $(PE_MANDATORY_CLIENT_PARAMETERS) | |
- --service.path_prefix | |
- /api/upgrades_info | |
- --service.port | |
- "8081" | |
- --status.address | |
- $(PE_STATUS_ADDRESS) | |
- --status.port | |
- "9081" | |
- --upstream.cincinnati.url | |
- $(UPSTREAM) | |
command: | |
- /usr/bin/policy-engine | |
env: | |
- name: ADDRESS | |
valueFrom: | |
configMapKeyRef: | |
key: pe.address | |
name: cincinnati | |
- name: PE_STATUS_ADDRESS | |
valueFrom: | |
configMapKeyRef: | |
key: pe.status.address | |
name: cincinnati | |
- name: UPSTREAM | |
valueFrom: | |
configMapKeyRef: | |
key: pe.upstream | |
name: cincinnati | |
- name: PE_LOG_VERBOSITY | |
valueFrom: | |
configMapKeyRef: | |
key: pe.log.verbosity | |
name: cincinnati | |
- name: PE_MANDATORY_CLIENT_PARAMETERS | |
valueFrom: | |
configMapKeyRef: | |
key: pe.mandatory_client_parameters | |
name: cincinnati | |
- name: RUST_BACKTRACE | |
valueFrom: | |
configMapKeyRef: | |
key: pe.rust_backtrace | |
name: cincinnati | |
image: quay.io/app-sre/cincinnati:e111b06 | |
imagePullPolicy: IfNotPresent | |
livenessProbe: | |
initialDelaySeconds: 3 | |
periodSeconds: 10 | |
tcpSocket: | |
port: 8081 | |
timeoutSeconds: 3 | |
name: cincinnati-policy-engine | |
ports: | |
- containerPort: 8081 | |
name: policy-engine | |
- containerPort: 9081 | |
name: status-pe | |
resources: | |
limits: | |
cpu: 750m | |
memory: 512Mi | |
requests: | |
cpu: 350m | |
memory: 128Mi | |
volumes: | |
- configMap: | |
name: cincinnati-configs | |
name: configs | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: cincinnati-graph-builder | |
name: cincinnati-graph-builder | |
spec: | |
ports: | |
- name: graph-builder | |
port: 8080 | |
protocol: TCP | |
targetPort: 8080 | |
- name: status-gb | |
port: 9080 | |
protocol: TCP | |
targetPort: 9080 | |
selector: | |
deploymentconfig: cincinnati | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: cincinnati-policy-engine | |
name: cincinnati-policy-engine | |
spec: | |
ports: | |
- name: policy-engine | |
port: 80 | |
protocol: TCP | |
targetPort: 8081 | |
- name: status-pe | |
port: 9081 | |
protocol: TCP | |
targetPort: 9081 | |
selector: | |
deploymentconfig: cincinnati | |
--- | |
apiVersion: v1 | |
data: | |
gb.rust_backtrace: "0" | |
pe.address: 0.0.0.0 | |
pe.log.verbosity: vv | |
pe.mandatory_client_parameters: channel | |
pe.rust_backtrace: "0" | |
pe.status.address: 0.0.0.0 | |
pe.upstream: http://localhost:8080/v1/graph | |
kind: ConfigMap | |
metadata: | |
name: cincinnati | |
--- | |
apiVersion: v1 | |
data: | |
gb.toml: |+ | |
verbosity = "vvv" | |
[service] | |
pause_secs = 30 | |
address = "0.0.0.0" | |
port = 8080 | |
[status] | |
address = "0.0.0.0" | |
port = 9080 | |
[[plugin_settings]] | |
name = "release-scrape-dockerv2" | |
registry = "quay.io" | |
repository = "openshift-release-dev/ocp-release" | |
fetch_concurrency = 16 | |
[[plugin_settings]] | |
name = "github-secondary-metadata-scrape" | |
github_org = "openshift" | |
github_repo = "cincinnati-graph-data" | |
reference_branch = "master" | |
output_directory = "/tmp/cincinnati/graph-data" | |
[[plugin_settings]] | |
name = "openshift-secondary-metadata-parse" | |
data_directory = "/tmp/cincinnati/graph-data" | |
[[plugin_settings]] | |
name = "edge-add-remove" | |
kind: ConfigMap | |
metadata: | |
name: cincinnati-configs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment