Project

General

Profile

Files » ghost4.yaml

Christian Orellana, 02/07/2022 05:49 PM

 
1
apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
  name: myblog-ghost
5
  labels:
6
    app: blog
7
spec:
8
  replicas: 1
9
  selector:
10
    matchLabels:
11
      app: blog
12
  template:
13
    metadata:
14
      labels:
15
        app: blog
16
    spec:
17
      containers:
18
      - name: blog
19
        image: ghost:4.34-alpine
20
        imagePullPolicy: Always
21
        ports:
22
        - containerPort: 2368
23
        env:
24
        - name: url
25
          value: http://your-domain.uncloud.co
26
---
27
apiVersion: v1
28
kind: Service
29
metadata:
30
  name: myblog-ghost
31
spec:
32
  type: LoadBalancer
33
  selector:
34
    app: blog
35
  ports:
36
  - protocol: TCP
37
    port: 80
38
    targetPort: 2368
(1-1/3)