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

LOG-2803: Upgrade libraries io.flow #779

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

shawncruz
Copy link
Member

  • io.flow
    • lib-event-sync-play28 (0.6.67 => 0.6.68)
    • lib-log (0.2.26 => 0.2.27)
    • lib-play-play28 (0.8.6 => 0.8.7)

@flow-tech
Copy link
Contributor

helm diff output for dependency-api:
production, dependency-api-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-api-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-api
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-api
      app.kubernetes.io/stage: live
      app: dependency-api
      tags.datadoghq.com/service: dependency-api
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-api
        app.kubernetes.io/instance: dependency-api
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-api
          app.kubernetes.io/instance: dependency-api
          app.kubernetes.io/stage: live
          app: dependency-api
          tags.datadoghq.com/service: dependency-api
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-api
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-api
            image: "flowcommerce/dependency-api:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-api
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-api-postgresql,java-aws-sdk:dependency-api-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 3000Mi
              requests:
                cpu: 0.2
                memory: 3000Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-api
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate
helm diff output for dependency-www:
production, dependency-www-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-www-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-www
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-www
      app.kubernetes.io/stage: live
      app: dependency-www
      tags.datadoghq.com/service: dependency-www
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-www
        app.kubernetes.io/instance: dependency-www
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-www
          app.kubernetes.io/instance: dependency-www
          app.kubernetes.io/stage: live
          app: dependency-www
          tags.datadoghq.com/service: dependency-www
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-www
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-www
            image: "flowcommerce/dependency-www:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-www
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-www-postgresql,java-aws-sdk:dependency-www-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 2700Mi
              requests:
                cpu: 0.2
                memory: 2700Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-www
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate

2 similar comments
@flow-tech
Copy link
Contributor

helm diff output for dependency-api:
production, dependency-api-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-api-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-api
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-api
      app.kubernetes.io/stage: live
      app: dependency-api
      tags.datadoghq.com/service: dependency-api
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-api
        app.kubernetes.io/instance: dependency-api
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-api
          app.kubernetes.io/instance: dependency-api
          app.kubernetes.io/stage: live
          app: dependency-api
          tags.datadoghq.com/service: dependency-api
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-api
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-api
            image: "flowcommerce/dependency-api:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-api
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-api-postgresql,java-aws-sdk:dependency-api-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 3000Mi
              requests:
                cpu: 0.2
                memory: 3000Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-api
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate
helm diff output for dependency-www:
production, dependency-www-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-www-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-www
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-www
      app.kubernetes.io/stage: live
      app: dependency-www
      tags.datadoghq.com/service: dependency-www
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-www
        app.kubernetes.io/instance: dependency-www
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-www
          app.kubernetes.io/instance: dependency-www
          app.kubernetes.io/stage: live
          app: dependency-www
          tags.datadoghq.com/service: dependency-www
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-www
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-www
            image: "flowcommerce/dependency-www:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-www
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-www-postgresql,java-aws-sdk:dependency-www-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 2700Mi
              requests:
                cpu: 0.2
                memory: 2700Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-www
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate

@flow-tech
Copy link
Contributor

helm diff output for dependency-api:
production, dependency-api-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-api-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-api
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-api
      app.kubernetes.io/stage: live
      app: dependency-api
      tags.datadoghq.com/service: dependency-api
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-api
        app.kubernetes.io/instance: dependency-api
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-api
          app.kubernetes.io/instance: dependency-api
          app.kubernetes.io/stage: live
          app: dependency-api
          tags.datadoghq.com/service: dependency-api
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-api
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-api
            image: "flowcommerce/dependency-api:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-api
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-api-postgresql,java-aws-sdk:dependency-api-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 3000Mi
              requests:
                cpu: 0.2
                memory: 3000Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-api
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate
helm diff output for dependency-www:
production, dependency-www-live, Deployment (apps) has changed:
  # Source: flow-generic/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: dependency-www-live
    labels:
      helm.sh/chart: flow-generic-1.5.53
      app.kubernetes.io/instance: dependency-www
      app.kubernetes.io/managed-by: Tiller
      app.kubernetes.io/name: dependency-www
      app.kubernetes.io/stage: live
      app: dependency-www
      tags.datadoghq.com/service: dependency-www
      tags.datadoghq.com/env: live
      tags.datadoghq.com/version: 0.9.94
      flow.io/version: 0.9.94
      flow.io/team: foundation
  spec:
    replicas: 2
    
    selector:
      matchLabels:
        app.kubernetes.io/name: dependency-www
        app.kubernetes.io/instance: dependency-www
        app.kubernetes.io/stage: live
    template:
      metadata:
        labels:
          app.kubernetes.io/name: dependency-www
          app.kubernetes.io/instance: dependency-www
          app.kubernetes.io/stage: live
          app: dependency-www
          tags.datadoghq.com/service: dependency-www
          tags.datadoghq.com/env: live
          tags.datadoghq.com/version: 0.9.94
          flow.io/version: 0.9.94
          flow.io/team: foundation
        annotations:
          iam.amazonaws.com/role: arn:aws:iam::479720515435:role/ecsInstanceRole
          sumologic.com/sourceCategory: dependency-www
          sidecar.istio.io/logLevel: info
          proxy.istio.io/config: '{"terminationDrainDuration": 60s}'
      spec:
        terminationGracePeriodSeconds: 60
        containers:
          - name: dependency-www
            image: "flowcommerce/dependency-www:0.9.94"
            imagePullPolicy: IfNotPresent
            env:
              - name: JAVA_OPTS
                value: "-Xms2100m -Xmx2100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/dumps/oom.bin -XX:+UseG1GC -XX:+UseStringDeduplication -XX:FlightRecorderOptions=stackdepth=256"
              - name: FLOW_KUBERNETES_NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
              - name: FLOW_KUBERNETES_NODE_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.hostIP
              - name: FLOW_KUBERNETES_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: FLOW_KUBERNETES_POD_NAMESPACE
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.namespace
              - name: FLOW_KUBERNETES_POD_IP
                valueFrom:
                  fieldRef:
                    fieldPath: status.podIP
              - name: FLOW_KUBERNETES_POD_UID
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.uid
              - name: DD_SERVICE
                value: dependency-www
              - name: DD_ENV
                value: live
              - name: DD_VERSION
                value: 0.9.94
              - name: DD_JMXFETCH_STATSD_HOST
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_DOGSTATSD_URL
                value: 'unix:///var/run/datadog/dsd.socket'
              - name: DD_TRACE_AGENT_URL
                value: 'unix:///var/run/datadog/apm.socket'
              - name: DD_SERVICE_MAPPING
                value: "postgresql:dependency-www-postgresql,java-aws-sdk:dependency-www-aws-sdk"
              - name: DD_TAGS
                value: "team:foundation"
              - name: DD_KUBERNETES_POD_LABELS_AS_TAGS
                value: '{"*": "label_%%label%%"}'
              - name: DD_CONTAINER_ENV_AS_TAGS
                value: '{"FLOW_KUBERNETES_POD_NAME":"env_flow_kubernetes_pod_name","FLOW_KUBERNETES_POD_NAMESPACE":"env_flow_kubernetes_pod_namespace"}'
            args: ["production"]
            ports:
              - name: http
                containerPort: 9000
                protocol: TCP
            volumeMounts:
              - name: dsdsocket
                mountPath: /var/run/datadog
              - name: heap-dumps
                mountPath: /dumps
            startupProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 30
              periodSeconds: 10
            livenessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 6
              periodSeconds: 10
              timeoutSeconds: 5
            readinessProbe:
              httpGet:
                path: /_internal_/healthcheck
                port: http
              failureThreshold: 1
              periodSeconds: 10
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 1
                memory: 2700Mi
              requests:
                cpu: 0.2
                memory: 2700Mi
              
        nodeSelector:
          karpenter/role: workers
          
        imagePullSecrets:
          - name: flow-docker-hub
          
        topologySpreadConstraints:
          - maxSkew: 1
            topologyKey: topology.kubernetes.io/zone
-           whenUnsatisfiable: DoNotSchedule
+           whenUnsatisfiable: ScheduleAnyway
            labelSelector:
              matchLabels:
                app: dependency-www
        tolerations:
          - effect: NoSchedule
            key: role
            operator: Equal
            value: workers
          
        dnsConfig:
          options:
            - name: ndots
              value: "1"
        volumes:
          - name: dsdsocket
            hostPath:
              path: /var/run/datadog/
              type: DirectoryOrCreate
          - name: heap-dumps
            emptyDir: {}
    strategy:
      type: RollingUpdate

@shawncruz shawncruz merged commit 61bf48b into main Oct 14, 2024
2 of 5 checks passed
@shawncruz shawncruz deleted the upgrade_libraries_2024-10-09_03.32_PM branch October 14, 2024 20:21
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

Successfully merging this pull request may close these issues.

3 participants