Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Policy to check that search is enabled #265

Open
ch-stark opened this issue May 3, 2022 · 0 comments
Open

Create a Policy to check that search is enabled #265

ch-stark opened this issue May 3, 2022 · 0 comments

Comments

@ch-stark
Copy link
Contributor

ch-stark commented May 3, 2022

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
  generation: 2
  labels:
    app: search-prod
    app.kubernetes.io/managed-by: Helm
    chart: search-prod-2.5.0
    component: search-operator
    heritage: Helm
    installer.name: multiclusterhub
    installer.namespace: open-cluster-management
    release: search-prod-12d02
    manager: multicluster-operators-subscription
  name: search-operator
  namespace: open-cluster-management
  ownerReferences:
  - apiVersion: apps.open-cluster-management.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: HelmRelease
    name: search-prod-12d02
    uid: 86d3d8b7-ddab-4bf7-98a2-2909bb396053
  resourceVersion: "123881"
  uid: 8dcb24b9-9d43-44f4-b693-f8aca481d65c
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      name: search-operator
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: search-prod
        chart: search-prod-2.5.0
        heritage: Helm
        name: search-operator
        ocm-antiaffinity-selector: searchoperator
        release: search-prod-12d02
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: ocm-antiaffinity-selector
                  operator: In
                  values:
                  - searchoperator
              topologyKey: topology.kubernetes.io/zone
            weight: 70
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: ocm-antiaffinity-selector
                  operator: In
                  values:
                  - searchoperator
              topologyKey: kubernetes.io/hostname
            weight: 35
      containers:
      - args:
        - --enable-leader-election
        command:
        - /manager
        env:
        - name: RELEASE_NAME
          value: search-prod-12d02
        - name: WATCH_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: OPERATOR_NAME
          value: search-operator
        - name: SEARCH_COLLECTOR_IMAGE_NAME
          value: quay.io/stolostron/search-collector@sha256:63c5dde252a968917381ba00436459d4ccf991937ac2d3f756de61f8245a497d
        - name: DEPLOY_REDISGRAPH
          value: "true"
        image: quay.io/stolostron/search-operator@sha256:7c07841572b19eec94f0339166f23a74da664dfa559c4cb005e8c713c6eaf73c
        imagePullPolicy: IfNotPresent
        name: search-operator
        resources:
          limits:
            memory: 256Mi
          requests:
            cpu: 1m
            memory: 32Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      imagePullSecrets:
      - name: multiclusterhub-operator-pull-secret
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsNonRoot: true
      serviceAccount: search-operator
      serviceAccountName: search-operator
      terminationGracePeriodSeconds: 30
      tolerations:
      - effect: NoSchedule
        key: node-role.kubernetes.io/infra
        operator: Exists

oc set env deploy search-operator DEPLOY_REDISGRAPH="true" -n open-cluster-management

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant