Last active
June 11, 2019 12:45
-
-
Save deepak1725/ac19328ea91b87189c3aecfce77f8f83 to your computer and use it in GitHub Desktop.
OSD Monitor Template
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: 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 | |
| - name: pcp-prom-endpoints | |
| configMap: | |
| name: osd-monitor-prom-endpoints | |
| containers: | |
| - image: '${IMAGE_PCP_CENTRAL_LOGGER}:${IMAGE_TAG}' | |
| name: pcp-central-logger | |
| volumeMounts: | |
| - name: pcp-logs | |
| mountPath: /var/log/pcp | |
| env: | |
| - name: ZABBIX_SERVER | |
| value: zabbix.devshift.net | |
| - name: VALGRIND | |
| value: ~ | |
| resources: | |
| limits: | |
| cpu: 2000m | |
| memory: 3000Mi | |
| requests: | |
| cpu: 1m | |
| memory: 500Mi | |
| - 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 | |
| - 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 | |
| initialDelaySeconds: 30 | |
| periodSeconds: 60 | |
| timeoutSeconds: 10 | |
| resources: | |
| limits: | |
| cpu: 8000m | |
| memory: 8000Mi | |
| requests: | |
| cpu: 1m | |
| memory: 500Mi | |
| - image: '${IMAGE_PCP_WEBAPI_GUARD}:${IMAGE_TAG}' | |
| name: pcp-webapi-guard | |
| env: | |
| - name: OAUTH2_PROXY_REDIRECT_URL | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: redirect.url | |
| - name: OAUTH2_PROXY_GITHUB_ORG | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: github.org | |
| - name: OAUTH2_PROXY_GITHUB_TEAM | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: github.team | |
| - name: OAUTH2_PROXY_CLIENT_ID | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: client.id | |
| - name: OAUTH2_PROXY_CLIENT_SECRET | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: client.secret | |
| - name: OAUTH2_PROXY_COOKIE_SECRET | |
| valueFrom: | |
| secretKeyRef: | |
| name: osd-monitor | |
| key: cookie.secret | |
| ports: | |
| - containerPort: 8000 | |
| protocol: TCP | |
| livenessProbe: | |
| httpGet: | |
| path: /ping | |
| port: 8000 | |
| periodSeconds: 60 | |
| timeoutSeconds: 10 | |
| resources: | |
| limits: | |
| cpu: 1000m | |
| memory: 200Mi | |
| requests: | |
| cpu: 1m | |
| memory: 50Mi | |
| name: pcp-postgresql-auth | |
| env: | |
| - name: PCP_HOSTNAME | |
| value: DB-auth | |
| - name: DB_HOSTNAME | |
| valueFrom: | |
| secretKeyRef: | |
| name: auth | |
| key: db.host | |
| - name: DB_DB | |
| value: postgres | |
| - name: DB_USER | |
| valueFrom: | |
| secretKeyRef: | |
| name: auth | |
| key: db.user | |
| - name: DB_PASSWORD | |
| valueFrom: | |
| secretKeyRef: | |
| name: auth | |
| key: db.password | |
| - name: PMCD_PORT | |
| value: "54322" | |
| ports: | |
| - containerPort: 54322 | |
| protocol: TCP | |
| resources: | |
| limits: | |
| cpu: 1000m | |
| memory: 200Mi | |
| requests: | |
| cpu: 1m | |
| memory: 50Mi | |
| 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: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: osd-monitor-jaeger | |
| labels: | |
| service: osd-monitor-jaeger | |
| spec: | |
| ports: | |
| - name: 'osd-monitor-jaeger-zipkin' | |
| protocol: TCP | |
| port: 9411 | |
| targetPort: 9411 | |
| - name: 'osd-monitor-jaeger-traces' | |
| protocol: TCP | |
| port: 14268 | |
| targetPort: 14268 | |
| - name: 'osd-monitor-jaeger-manager' | |
| protocol: TCP | |
| port: 5778 | |
| targetPort: 5778 | |
| 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 | |
| - apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: osd-monitor-prom-endpoints | |
| data: | |
| rhche_host.url: "http://rhche-host:8087/metrics\n" | |
| jaeger.url: "http://localhost:16686/jaeger/metrics\n" | |
| - apiVersion: v1 | |
| kind: ServiceAccount | |
| imagePullSecrets: | |
| - name: quay.io | |
| metadata: | |
| name: osd-monitor | |
| parameters: | |
| - name: IMAGE_PCP_CENTRAL_LOGGER | |
| value: quay.io/openshiftio/perf-pcp-central-logger | |
| - name: IMAGE_PCP_CENTRAL_WEBAPI | |
| value: quay.io/openshiftio/perf-pcp-central-webapi | |
| - name: IMAGE_PCP_PROMETHEUS_IN | |
| value: quay.io/openshiftio/perf-pcp-prometheus-in | |
| - name: IMAGE_PCP_JAEGER | |
| value: quay.io/openshiftio/perf-jaeger | |
| - name: IMAGE_PCP_WEBAPI_GUARD | |
| value: quay.io/openshiftio/perf-pcp-webapi-guard | |
| - name: IMAGE_PCP_POSTGRESQL | |
| value: quay.io/openshiftio/perf-pcp-postgresql-monitor | |
| - name: IMAGE_OSO_CENTRAL_LOGGER | |
| value: quay.io/openshiftio/perf-oso-central-logger | |
| - name: IMAGE_OSO_CENTRAL_WEBAPI_GUARD | |
| value: quay.io/openshiftio/perf-oso-central-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