github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/containerized_workload_deployment.yaml (about)

     1  # Copyright (C) 2020, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  apiVersion: apps/v1
     4  kind: Deployment
     5  metadata:
     6    annotations:
     7      app.oam.dev/generation: "2"
     8      deployment.kubernetes.io/revision: "2"
     9      description: Hello Helidon application
    10      kubectl.kubernetes.io/last-applied-configuration: |
    11        {"apiVersion":"core.oam.dev/v1alpha2","kind":"ApplicationConfiguration","metadata":{"annotations":{"description":"Hello Helidon application","version":"v1.0.0"},"name":"hello-helidon","namespace":"hello-helidon"},"spec":{"components":[{"componentName":"hello-helidon-component","traits":[{"trait":{"apiVersion":"oam.verrazzano.io/v1alpha1","kind":"MetricsTrait","spec":{"scraper":"verrazzano-system/vmi-system-prometheus-0"}}},{"trait":{"apiVersion":"oam.verrazzano.io/v1alpha1","kind":"IngressTrait"}}]}]}}
    12      version: v1.0.0
    13    creationTimestamp: "2020-12-10T02:07:45Z"
    14    generation: 3
    15    labels:
    16      app: ##OAM_APP_NAME##
    17      app.oam.dev/component: ##OAM_COMP_NAME##
    18      app.oam.dev/name: ##OAM_APP_NAME##
    19      app.oam.dev/resourceType: WORKLOAD
    20      app.oam.dev/revision: ##OAM_COMP_NAME##-v1
    21    name: ##DEPLOYMENT_NAME##
    22    namespace: ##DEPLOYMENT_NAMESPACE##
    23    ownerReferences:
    24      - apiVersion: core.oam.dev/v1alpha2
    25        blockOwnerDeletion: true
    26        controller: true
    27        kind: ContainerizedWorkload
    28        name: ##WORKLOAD_NAME##
    29        uid: 2164eb12-5f15-4b74-bcc8-9a854ec9e92d
    30    resourceVersion: "7944733"
    31    selfLink: /apis/apps/v1/namespaces/hello-helidon/deployments/hello-helidon-workload
    32    uid: ac2c73f4-9bc0-4757-8611-9b0df307bd05
    33  spec:
    34    progressDeadlineSeconds: 600
    35    replicas: 1
    36    revisionHistoryLimit: 10
    37    selector:
    38      matchLabels:
    39        containerizedworkload.oam.crossplane.io: 2164eb12-5f15-4b74-bcc8-9a854ec9e92d
    40    strategy:
    41      rollingUpdate:
    42        maxSurge: 25%
    43        maxUnavailable: 25%
    44      type: RollingUpdate
    45    template:
    46      metadata:
    47        annotations:
    48          verrazzano.io/metricsEnabled: "true"
    49          verrazzano.io/metricsPath: /metrics
    50          verrazzano.io/metricsPort: "8080"
    51        creationTimestamp: null
    52        labels:
    53          app: ##OAM_APP_NAME##
    54          app.oam.dev/component: ##OAM_COMP_NAME##
    55          app.oam.dev/name: ##OAM_APP_NAME##
    56          app.oam.dev/resourceType: WORKLOAD
    57          app.oam.dev/revision: ##OAM_COMP_NAME##-v1
    58          containerizedworkload.oam.crossplane.io: 2164eb12-5f15-4b74-bcc8-9a854ec9e92d
    59      spec:
    60        containers:
    61          - image: fake-image
    62            imagePullPolicy: IfNotPresent
    63            name: ##OAM_COMP_NAME##-container
    64            ports:
    65              - containerPort: 8080
    66                name: http
    67                protocol: TCP
    68            resources: {}
    69            terminationMessagePath: /dev/termination-log
    70            terminationMessagePolicy: File
    71        dnsPolicy: ClusterFirst
    72        restartPolicy: Always
    73        schedulerName: default-scheduler
    74        securityContext: {}
    75        terminationGracePeriodSeconds: 30
    76  status:
    77    availableReplicas: 1
    78    conditions:
    79      - lastTransitionTime: "2020-12-10T02:07:48Z"
    80        lastUpdateTime: "2020-12-10T02:07:48Z"
    81        message: Deployment has minimum availability.
    82        reason: MinimumReplicasAvailable
    83        status: "True"
    84        type: Available
    85      - lastTransitionTime: "2020-12-10T02:07:45Z"
    86        lastUpdateTime: "2020-12-10T02:11:02Z"
    87        message: ReplicaSet "hello-helidon-workload-ffdcf77c5" has successfully progressed.
    88        reason: NewReplicaSetAvailable
    89        status: "True"
    90        type: Progressing
    91    observedGeneration: 3
    92    readyReplicas: 1
    93    replicas: 1
    94    updatedReplicas: 1