github.com/SamarSidharth/kpt@v0.0.0-20231122062228-c7d747ae3ace/package-examples/ghost/ghost-app/deployment-ghost.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: ghost-app
     5    namespace: example
     6    labels:
     7      app.kubernetes.io/name: ghost-app
     8  spec:
     9    replicas: 1
    10    strategy:
    11      type: Recreate
    12    template:
    13      spec:
    14        securityContext:
    15          fsGroup: 1001
    16        containers:
    17          - name: ghost-app
    18            image: docker.io/bitnami/ghost:4.45.0-debian-10-r0
    19            imagePullPolicy: IfNotPresent
    20            securityContext:
    21              runAsNonRoot: true
    22              runAsUser: 1001
    23            env:
    24              - name: BITNAMI_DEBUG
    25                value: "true"
    26              - name: ALLOW_EMPTY_PASSWORD
    27                value: "yes"
    28              - name: GHOST_DATABASE_HOST
    29                value: mariadb
    30              - name: GHOST_DATABASE_PORT_NUMBER
    31                value: "3306"
    32              - name: GHOST_DATABASE_NAME
    33                value: bitnami_ghost
    34              - name: GHOST_DATABASE_USER
    35                value: bn_ghost
    36              - name: GHOST_HOST
    37                value: example.com
    38              - name: GHOST_PORT_NUMBER
    39                value: "2368"
    40              - name: GHOST_USERNAME
    41                value: user
    42              - name: GHOST_EMAIL
    43                value: user@example.com
    44              - name: GHOST_BLOG_TITLE
    45                value: User's Blog
    46              - name: GHOST_ENABLE_HTTPS
    47                value: "no"
    48              - name: GHOST_EXTERNAL_HTTP_PORT_NUMBER
    49                value: "80"
    50              - name: GHOST_EXTERNAL_HTTPS_PORT_NUMBER
    51                value: "443"
    52              - name: GHOST_SKIP_BOOTSTRAP
    53                value: "no"
    54            ports:
    55              - name: http
    56                containerPort: 2368
    57                protocol: TCP
    58            livenessProbe:
    59              httpGet:
    60                path: /
    61                port: http
    62                scheme: HTTP
    63              initialDelaySeconds: 120
    64              periodSeconds: 10
    65              timeoutSeconds: 5
    66              failureThreshold: 6
    67              successThreshold: 1
    68            readinessProbe:
    69              httpGet:
    70                path: /
    71                port: http
    72                scheme: HTTP
    73              initialDelaySeconds: 30
    74              periodSeconds: 5
    75              timeoutSeconds: 3
    76              failureThreshold: 6
    77              successThreshold: 1
    78            resources:
    79              limits: {}
    80              requests: {}
    81            volumeMounts:
    82              - name: ghost-data
    83                mountPath: /bitnami/ghost
    84        volumes:
    85          - name: ghost-data
    86            persistentVolumeClaim:
    87              claimName: ghost-app
    88      metadata:
    89        labels:
    90          app.kubernetes.io/name: ghost-app
    91    selector:
    92      matchLabels:
    93        app.kubernetes.io/name: ghost-app