Untitled

 avatar
unknown
plain_text
2 years ago
10 kB
6
Indexable
apiVersion: v1
kind: Pod
metadata:
  annotations:
    kubectl.kubernetes.io/restartedAt: "2022-11-26T23:03:26+05:30"
    kubernetes.io/psp: eks.privileged
  creationTimestamp: "2023-04-06T12:38:02Z"
  generateName: rails-automate-787c4d6c56-
  labels:
    browserstack.com/application: rails-automate
    browserstack.com/component: railsapp
    browserstack.com/env: k8s-devautomate2
    pod-template-hash: 787c4d6c56
  name: rails-automate-787c4d6c56-hpdpt
  namespace: stag-k8s-devautomate2
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: rails-automate-787c4d6c56
    uid: c8d1e211-12f6-455e-9b4e-d0e72cbd7e21
  resourceVersion: "1975530792"
  uid: 94b81fd7-dd3f-4128-b047-fbe62d96a630
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: topology.kubernetes.io/zone
            operator: In
            values:
            - eu-central-1a
            - eu-central-1b
  containers:
  - env:
    - name: BUILD_ENV
      value: staging
    - name: P1_DEPLOY
      value: "false"
    - name: CHECK_PATH
      value: users/sign_up
    - name: SUBDOMAIN
      value: automate-k8s-devautomate2.bsstag.com
    - name: COMMAND_TO_RUN
      value: mkdir -p {/var/log/nginx,/ebs/logs,/home/app/railsApp/log,/home/app/railsApp/config/learnupon/metadata}
        && chown app:app -R {/var/log/nginx,/ebs/logs/,/home/app/railsApp/log,/home/app/railsApp/config/learnupon/metadata}
        && /usr/sbin/nginx -g 'daemon off;'
    - name: RAILS_ENV
      valueFrom:
        configMapKeyRef:
          key: RAILS_ENV
          name: rails-env
    - name: SETUP_NAME
      valueFrom:
        configMapKeyRef:
          key: SETUP_NAME
          name: setup-name
    - name: SHOULD_COMPILE_ASSETS
      value: "false"
    - name: AWS_STS_REGIONAL_ENDPOINTS
      value: regional
    - name: AWS_DEFAULT_REGION
      value: eu-central-1
    - name: AWS_REGION
      value: eu-central-1
    - name: AWS_ROLE_ARN
      value: arn:aws:iam::737963123736:role/eksctl-browserstack-euc1-1-addon-iamservicea-Role1-1UTCKBWZZK7L7
    - name: AWS_WEB_IDENTITY_TOKEN_FILE
      value: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
    image: 737963123736.dkr.ecr.eu-central-1.amazonaws.com/browserstack/railsapp-base:stag-36eae9b4a-36de24c97
    imagePullPolicy: IfNotPresent
    name: rails-automate
    resources:
      limits:
        cpu: 300m
        ephemeral-storage: 50Mi
        memory: 700Mi
      requests:
        cpu: 300m
        ephemeral-storage: 50Mi
        memory: 700Mi
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /opt/secrets/staging
      name: staging-secrets
    - mountPath: /home/app/railsApp/config/learnupon/learnupon-staging.cert
      name: staging-secrets
      subPath: learnupon-staging.cert
    - mountPath: /home/app/railsApp/config/learnupon/learnupon-staging.pem
      name: staging-secrets
      subPath: learnupon-staging.pem
    - mountPath: /home/app/railsApp/config/initializers/pk-cloudfront.pem
      name: staging-secrets
      subPath: pk-cloudfront.pem
    - mountPath: /tmp/assets
      name: rails-assets-modified
    - mountPath: /ebs
      name: rails-automate-ebs
    - mountPath: /home/app/railsApp/log
      name: rails-automate-applog
    - mountPath: /var/log
      name: rails-automate-varlog
    - mountPath: /tmp/hacks
      name: railsapp-hacks
    - mountPath: /tmp/staging-readiness.sh
      name: entrypoints
      subPath: staging-readiness.sh
    - mountPath: /tmp/entrypoint.sh
      name: entrypoints
      subPath: rails-entrypoint.sh
    - mountPath: /tmp/staging-liveness.sh
      name: entrypoints
      subPath: staging-liveness.sh
    - mountPath: /tmp/staging-startup.sh
      name: entrypoints
      subPath: staging-startup.sh
    - mountPath: /etc/confd/conf.d/confd_automate.toml
      name: automate-tomls
      subPath: confd_automate.toml
    - mountPath: /etc/confd/conf.d/confd_url_whitelisting.toml
      name: automate-tomls
      subPath: confd_url_whitelisting.toml
    - mountPath: /tmp/app_uploader_401.json
      name: automate-nginx
      subPath: app_uploader_401.json
    - mountPath: /tmp/app_uploader_429.json
      name: automate-nginx
      subPath: app_uploader_429.json
    - mountPath: /etc/confd/templates/nginx_automate.conf.tmpl
      name: automate-nginx
      subPath: nginx_automate.conf.tmpl
    - mountPath: /etc/confd/templates/url_whitelisting.conf.tmpl
      name: automate-nginx
      subPath: url_whitelisting.conf.tmpl
    - mountPath: /etc/confd/conf.d/confd_env.scss.toml
      name: base-tomls
      subPath: confd_env.scss.toml
    - mountPath: /etc/confd/conf.d/confd_rails_config.toml
      name: base-tomls
      subPath: confd_rails_config.toml
    - mountPath: /etc/confd/conf.d/confd_rails_database.toml
      name: base-tomls
      subPath: confd_rails_database.toml
    - mountPath: /etc/confd/conf.d/confd_rails_frontend_config.toml
      name: base-tomls
      subPath: confd_rails_frontend_config.toml
    - mountPath: /tmp/api.json
      name: rails-config
      subPath: api.json
    - mountPath: /etc/confd/templates/_env.scss.tmpl
      name: rails-config
      subPath: _env.scss.tmpl
    - mountPath: /etc/confd/templates/config.yml.tmpl
      name: rails-config
      subPath: config.yml.tmpl
    - mountPath: /etc/confd/templates/frontend_config.json.tmpl
      name: rails-config
      subPath: frontend_config.json.tmpl
    - mountPath: /tmp/health_check_handler.conf
      name: base-nginx
      subPath: health_check_handler.conf
    - mountPath: /tmp/status_page.conf
      name: base-nginx
      subPath: status_page.conf
    - mountPath: /etc/confd/templates/database.yml.tmpl
      name: rails-config
      subPath: database.yml.tmpl
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-dtgmv
      readOnly: true
    - mountPath: /var/run/secrets/eks.amazonaws.com/serviceaccount
      name: aws-iam-token
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: ip-10-72-5-230.eu-central-1.compute.internal
  nodeSelector:
    purpose: pvt-apps-internal-spot-common-euc1-1
  preemptionPolicy: PreemptLowerPriority
  priority: -5
  priorityClassName: low-priority
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: remove-files-from-s3-staging
  serviceAccountName: remove-files-from-s3-staging
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoSchedule
    key: pvt-apps-internal-spot-common-euc1-1
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: ScheduleAnyway
  volumes:
  - name: aws-iam-token
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          audience: sts.amazonaws.com
          expirationSeconds: 86400
          path: token
  - name: staging-secrets
    secret:
      defaultMode: 420
      secretName: staging-secrets
  - configMap:
      defaultMode: 420
      items:
      - key: rev-manifest.json
        path: rev-manifest.json
      name: rails-assets-modified
    name: rails-assets-modified
  - configMap:
      defaultMode: 511
      name: entrypoints
    name: entrypoints
  - configMap:
      defaultMode: 511
      items:
      - key: railsapp-hacks.sh
        path: railsapp-hacks.sh
      - key: modify-automate-mobile-name.rb
        path: modify-automate-mobile-name.rb
      - key: modify_worker_id.rb
        path: modify_worker_id.rb
      name: staging-hacks
    name: railsapp-hacks
  - configMap:
      defaultMode: 511
      name: automate-tomls
    name: automate-tomls
  - configMap:
      defaultMode: 511
      name: automate-nginx
    name: automate-nginx
  - hostPath:
      path: /ebs/k8s-devautomate2/rails-automate/ebs
      type: DirectoryOrCreate
    name: rails-automate-ebs
  - hostPath:
      path: /ebs/k8s-devautomate2/rails-automate/applog
      type: DirectoryOrCreate
    name: rails-automate-applog
  - hostPath:
      path: /ebs/k8s-devautomate2/rails-automate/varlog
      type: DirectoryOrCreate
    name: rails-automate-varlog
  - configMap:
      defaultMode: 511
      name: base-tomls
    name: base-tomls
  - configMap:
      defaultMode: 511
      name: rails-config
    name: rails-config
  - configMap:
      defaultMode: 511
      name: base-nginx
    name: base-nginx
  - name: kube-api-access-dtgmv
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2023-04-06T12:38:02Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2023-04-06T12:38:05Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2023-04-06T12:38:05Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2023-04-06T12:38:02Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: docker://af8737014570f5f150b03f0e8dbdba60a4c555aac384e7edd7fd95ecfc242f30
    image: 737963123736.dkr.ecr.eu-central-1.amazonaws.com/browserstack/railsapp-base:stag-36eae9b4a-36de24c97
    imageID: docker-pullable://737963123736.dkr.ecr.eu-central-1.amazonaws.com/browserstack/railsapp-base@sha256:0f4e7525365c72c3bc51c091be4ed9cf42373cc1c04fb60921a64ec69c0d616d
    lastState: {}
    name: rails-automate
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2023-04-06T12:38:05Z"
  hostIP: 10.72.5.230
  phase: Running
  podIP: 10.72.4.132
  podIPs:
  - ip: 10.72.4.132
  qosClass: Guaranteed
  startTime: "2023-04-06T12:38:02Z"
Editor is loading...