Created
November 6, 2021 02:15
-
-
Save ruo91/485e1cb95d8e41df9b3c5914dffba007 to your computer and use it in GitHub Desktop.
OpenShift 4.x - Insights Operator Deployment
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: Deployment | |
| apiVersion: apps/v1 | |
| metadata: | |
| name: insights-operator | |
| namespace: openshift-insights | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: insights-operator | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: insights-operator | |
| annotations: | |
| target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' | |
| spec: | |
| nodeSelector: | |
| beta.kubernetes.io/os: linux | |
| node-role.kubernetes.io/master: '' | |
| restartPolicy: Always | |
| serviceAccountName: operator | |
| schedulerName: default-scheduler | |
| terminationGracePeriodSeconds: 30 | |
| securityContext: {} | |
| containers: | |
| - resources: | |
| requests: | |
| cpu: 10m | |
| memory: 30Mi | |
| terminationMessagePath: /dev/termination-log | |
| name: insights-operator | |
| env: | |
| - name: POD_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.name | |
| - name: POD_NAMESPACE | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.namespace | |
| - name: RELEASE_VERSION | |
| value: 4.8.18 | |
| ports: | |
| - name: https | |
| containerPort: 8443 | |
| protocol: TCP | |
| imagePullPolicy: IfNotPresent | |
| volumeMounts: | |
| - name: insights-local | |
| mountPath: /etc/insights-operator | |
| - name: snapshots | |
| mountPath: /var/lib/insights-operator | |
| - name: trusted-ca-bundle | |
| readOnly: true | |
| mountPath: /var/run/configmaps/trusted-ca-bundle | |
| - name: service-ca-bundle | |
| readOnly: true | |
| mountPath: /var/run/configmaps/service-ca-bundle | |
| - name: serving-cert | |
| mountPath: /var/run/secrets/serving-cert | |
| terminationMessagePolicy: FallbackToLogsOnError | |
| image: >- | |
| quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:ad63d3de50d6aef18e3c423c92827f899572e063ce25c3a128a81bb795f09af8 | |
| args: | |
| - start | |
| - '-v=4' | |
| - '--config=/etc/insights-operator/server.yaml' | |
| serviceAccount: operator | |
| volumes: | |
| - name: insights-local | |
| configMap: | |
| name: insights-local | |
| items: | |
| - key: server.yaml | |
| path: server.yaml | |
| defaultMode: 420 | |
| optional: true | |
| - name: snapshots | |
| emptyDir: {} | |
| - name: trusted-ca-bundle | |
| configMap: | |
| name: trusted-ca-bundle | |
| defaultMode: 420 | |
| optional: true | |
| - name: service-ca-bundle | |
| configMap: | |
| name: service-ca-bundle | |
| defaultMode: 420 | |
| optional: true | |
| - name: serving-cert | |
| secret: | |
| secretName: openshift-insights-serving-cert | |
| defaultMode: 420 | |
| optional: true | |
| dnsPolicy: ClusterFirst | |
| tolerations: | |
| - key: node-role.kubernetes.io/master | |
| operator: Exists | |
| effect: NoSchedule | |
| - key: node.kubernetes.io/unreachable | |
| operator: Exists | |
| effect: NoExecute | |
| tolerationSeconds: 900 | |
| - key: node.kubernetes.io/not-ready | |
| operator: Exists | |
| effect: NoExecute | |
| tolerationSeconds: 900 | |
| priorityClassName: system-cluster-critical | |
| strategy: | |
| type: Recreate | |
| revisionHistoryLimit: 10 | |
| progressDeadlineSeconds: 600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment