github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/wls_pod.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: v1
     4  kind: Pod
     5  metadata:
     6    annotations:
     7      prometheus.io/path: /wls-exporter/metrics
     8      prometheus.io/port: "8001"
     9      prometheus.io/scrape: "true"
    10      verrazzano.io/metricsEnabled: "true"
    11      verrazzano.io/metricsPath: /wls-exporter/metrics
    12      verrazzano.io/metricsPort: "8001"
    13      weblogic.sha256: 2f972340817c9f52fbdf4b8c50a64929a3063266101329d50362737fc379ad8e
    14    creationTimestamp: "2020-12-07T17:11:39Z"
    15    labels:
    16      app.oam.dev/component: todo-wls
    17      app.oam.dev/name: todo
    18      verrazzano.io_metricsTraitLabel: test-trait-label-1
    19      weblogic.clusterName: cluster-1
    20      weblogic.createdByOperator: "true"
    21      weblogic.domainName: bobbys-front-end
    22      weblogic.domainUID: tododomain
    23      weblogic.modelInImageDomainZipHash: md5.fb142c36db5f7f0f43d9e015bb8e9a32.md5
    24      weblogic.serverName: managed-server1
    25    name: ##POD_NAME##
    26    namespace: ##POD_NAMESPACE##
    27    ownerReferences:
    28      - apiVersion: weblogic.oracle/v8
    29        controller: true
    30        kind: Domain
    31        name: ##DOMAIN_NAME##
    32        uid: 8b7c0b2c-62bc-46b1-9ba6-b842d7dd7c4c
    33    resourceVersion: "6806293"
    34    selfLink: /api/v1/namespaces/todo/pods/tododomain-managed-server1
    35    uid: 63af8bc1-adc0-4c81-b945-421a668ad4ab
    36  spec:
    37    containers:
    38      - command:
    39          - /weblogic-operator/scripts/startServer.sh
    40        env:
    41          - name: JAVA_OPTIONS
    42            value: -Dweblogic.StdoutDebugEnabled=false
    43          - name: USER_MEM_ARGS
    44            value: '-Djava.security.egd=file:/dev/./urandom -Xms64m -Xmx256m '
    45          - name: WL_HOME
    46            value: /u01/oracle/wlserver
    47          - name: MW_HOME
    48            value: /u01/oracle
    49          - name: DOMAIN_NAME
    50            value: bobbys-front-end
    51          - name: DOMAIN_HOME
    52            value: /u01/oracle/user_projects/domains/tododomain
    53          - name: ADMIN_NAME
    54            value: AdminServer
    55          - name: ADMIN_PORT
    56            value: "7001"
    57          - name: SERVER_NAME
    58            value: managed-server1
    59          - name: DOMAIN_UID
    60            value: tododomain
    61          - name: NODEMGR_HOME
    62            value: /u01/nodemanager
    63          - name: LOG_HOME
    64          - name: SERVER_OUT_IN_POD_LOG
    65            value: "true"
    66          - name: SERVICE_NAME
    67            value: tododomain-managed-server1
    68          - name: AS_SERVICE_NAME
    69            value: tododomain-adminserver
    70          - name: ADMIN_USERNAME
    71          - name: ADMIN_PASSWORD
    72          - name: LOCAL_ADMIN_PORT
    73            value: "8001"
    74          - name: LOCAL_ADMIN_PROTOCOL
    75            value: t3
    76          - name: SHUTDOWN_TYPE
    77            value: Graceful
    78          - name: SHUTDOWN_TIMEOUT
    79            value: "30"
    80          - name: SHUTDOWN_IGNORE_SESSIONS
    81            value: "false"
    82          - name: DYNAMIC_CONFIG_OVERRIDE
    83            value: "true"
    84        image: fake-image
    85        imagePullPolicy: IfNotPresent
    86        lifecycle:
    87          preStop:
    88            exec:
    89              command:
    90                - /weblogic-operator/scripts/stopServer.sh
    91        livenessProbe:
    92          exec:
    93            command:
    94              - /weblogic-operator/scripts/livenessProbe.sh
    95          failureThreshold: 1
    96          initialDelaySeconds: 30
    97          periodSeconds: 45
    98          successThreshold: 1
    99          timeoutSeconds: 5
   100        name: weblogic-server
   101        ports:
   102          - containerPort: 8001
   103            name: default
   104            protocol: TCP
   105        readinessProbe:
   106          failureThreshold: 1
   107          httpGet:
   108            path: /weblogic/ready
   109            port: 8001
   110            scheme: HTTP
   111          initialDelaySeconds: 30
   112          periodSeconds: 5
   113          successThreshold: 1
   114          timeoutSeconds: 5
   115        resources: {}
   116        securityContext: {}
   117        terminationMessagePath: /dev/termination-log
   118        terminationMessagePolicy: File
   119        volumeMounts:
   120          - mountPath: /weblogic-operator/scripts
   121            name: weblogic-scripts-cm-volume
   122            readOnly: true
   123          - mountPath: /weblogic-operator/debug
   124            name: weblogic-domain-debug-cm-volume
   125            readOnly: true
   126          - mountPath: /weblogic-operator/introspector
   127            name: weblogic-domain-introspect-cm-volume
   128          - mountPath: /weblogic-operator/model-runtime-secret
   129            name: weblogic-domain-runtime-encryption-volume
   130            readOnly: true
   131          - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
   132            name: default-token-mmhb4
   133            readOnly: true
   134    dnsPolicy: ClusterFirst
   135    enableServiceLinks: true
   136    imagePullSecrets:
   137      - name: ocir
   138    nodeName: 10.11.12.13
   139    priority: 0
   140    restartPolicy: Always
   141    schedulerName: default-scheduler
   142    securityContext: {}
   143    serviceAccount: default
   144    serviceAccountName: default
   145    terminationGracePeriodSeconds: 40
   146    tolerations:
   147      - effect: NoExecute
   148        key: node.kubernetes.io/not-ready
   149        operator: Exists
   150        tolerationSeconds: 300
   151      - effect: NoExecute
   152        key: node.kubernetes.io/unreachable
   153        operator: Exists
   154        tolerationSeconds: 300
   155    volumes:
   156      - configMap:
   157          defaultMode: 365
   158          name: weblogic-scripts-cm
   159        name: weblogic-scripts-cm-volume
   160      - configMap:
   161          defaultMode: 365
   162          name: tododomain-weblogic-domain-debug-cm
   163          optional: true
   164        name: weblogic-domain-debug-cm-volume
   165      - configMap:
   166          defaultMode: 365
   167          name: tododomain-weblogic-domain-introspect-cm
   168        name: weblogic-domain-introspect-cm-volume
   169      - name: weblogic-domain-runtime-encryption-volume
   170        secret:
   171          defaultMode: 420
   172          secretName: tododomain-runtime-encrypt-secret
   173      - name: default-token-mmhb4
   174        secret:
   175          defaultMode: 420
   176          secretName: default-token-mmhb4
   177  status:
   178    conditions:
   179      - lastProbeTime: null
   180        lastTransitionTime: "2020-12-07T17:11:39Z"
   181        status: "True"
   182        type: Initialized
   183      - lastProbeTime: null
   184        lastTransitionTime: "2020-12-07T17:18:26Z"
   185        status: "True"
   186        type: Ready
   187      - lastProbeTime: null
   188        lastTransitionTime: "2020-12-07T17:18:26Z"
   189        status: "True"
   190        type: ContainersReady
   191      - lastProbeTime: null
   192        lastTransitionTime: "2020-12-07T17:11:39Z"
   193        status: "True"
   194        type: PodScheduled
   195    containerStatuses:
   196      - containerID: docker://ddf023c419954731a4114cbc4034837b5b6dcdcb117e9abb0e8037450e59ec5d
   197        image: fake-image
   198        imageID: fake-image-id
   199        lastState: {}
   200        name: weblogic-server
   201        ready: true
   202        restartCount: 0
   203        started: true
   204        state:
   205          running:
   206            startedAt: "2020-12-07T17:11:42Z"
   207    hostIP: 10.11.12.13
   208    phase: Running
   209    podIP: 10.12.13.14
   210    podIPs:
   211      - ip: 10.12.13.14
   212    qosClass: BestEffort
   213    startTime: "2020-12-07T17:11:39Z"