Created
June 12, 2019 06:07
-
-
Save deepak1725/cdd30ca815b0de8e7498a6a2a03c2217 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
objects: | |
- kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor-pcplogs | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
- kind: DeploymentConfig | |
apiVersion: v1 | |
metadata: | |
labels: | |
service: osd-monitor | |
name: osd-monitor | |
spec: | |
replicas: 1 | |
selector: | |
service: osd-monitor | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
service: osd-monitor | |
spec: | |
serviceAccountName: osd-monitor | |
volumes: | |
- name: pcp-logs | |
persistentVolumeClaim: | |
claimName: osd-monitor-pcplogs | |
containers: | |
- image: '${IMAGE_PCP_BAYESIAN_CENTRAL_LOGGER}:${IMAGE_TAG}' | |
name: pcp-bayesian-central-logger | |
volumeMounts: | |
- name: pcp-logs | |
mountPath: /var/log/pcp | |
resources: {} | |
env: | |
- name: ZABBIX_SERVER | |
value: zabbix.devshift.net | |
- name: VALGRIND | |
value: ~ | |
- image: '${IMAGE_PCP_CENTRAL_WEBAPI}:${IMAGE_TAG}' | |
name: pcp-central-webapi | |
volumeMounts: | |
- name: pcp-logs | |
mountPath: /var/log/pcp | |
ports: | |
- containerPort: 44323 | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: /pmapi/1/metrics?target=kernel.all.load | |
port: 44323 | |
initiaDelaySeconds: 30 | |
periodSeconds: 60 | |
timeoutSeconds: 10 | |
- image: '${IMAGE_PCP_BAYESIAN_WEBAPI_GUARD}:${IMAGE_TAG}' | |
name: pcp-webapi-guard | |
volumeMounts: | |
- name: pcp-logs | |
mountPath: /var/log/pcp | |
ports: | |
- containerPort: 8000 | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: /index.html | |
port: 8000 | |
initiaDelaySeconds: 30 | |
periodSeconds: 60 | |
timeoutSeconds: 10 | |
- image: '${IMAGE_PCP_PROMETHEUS_IN}:${IMAGE_TAG}' | |
name: pcp-prometheus-in | |
volumeMounts: | |
- name: pcp-prom-endpoints | |
mountPath: /var/lib/pcp/pmdas/prometheus/urls.d | |
env: | |
- name: PCP_HOSTNAME | |
value: osio | |
- name: PMCD_PORT | |
value: "54320" | |
ports: | |
- containerPort: 54320 | |
protocol: TCP | |
resources: | |
limits: | |
cpu: 500m | |
memory: 1000Mi | |
requests: | |
cpu: 1m | |
memory: 800Mi | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
test: false | |
triggers: | |
- type: ConfigChange | |
status: | |
details: | |
causes: | |
- type: ConfigChange | |
- kind: Service | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
labels: | |
service: osd-monitor | |
spec: | |
ports: | |
- name: 'osd-monitor-webapi-guard' | |
protocol: TCP | |
port: 80 | |
targetPort: 8000 | |
selector: | |
service: osd-monitor | |
type: ClusterIP | |
sessionAffinity: None | |
- kind: Route | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
spec: | |
to: | |
kind: Service | |
name: osd-monitor | |
tls: | |
termination: edge | |
insecureEdgeTerminationPolicy: Redirect | |
- kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
parameters: | |
- name: IMAGE_PCP_BAYESIAN_CENTRAL_LOGGER | |
value: quay.io/openshiftio/perf-pcp-bayesian-central-logger | |
- name: IMAGE_PCP_CENTRAL_WEBAPI | |
value: quay.io/openshiftio/perf-pcp-central-webapi | |
- name: IMAGE_PCP_BAYESIAN_WEBAPI_GUARD | |
value: quay.io/openshiftio/perf-pcp-bayesian-webapi-guard | |
- name: IMAGE_TAG | |
value: latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment