/
go_deploy_v2.yaml
40 lines (40 loc) · 1.06 KB
/
go_deploy_v2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ---
# apiVersion: v1
# kind: ServiceAccount
# metadata:
# name: go-movies-app-v2
# automountServiceAccountToken: true
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: go-movies-app-v2
# labels:
# app: go-movies-app
# version: v2
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: go-movies-app
# version: v2
# template:
# metadata:
# annotations:
# consul.hashicorp.com/connect-inject: "true"
# consul.hashicorp.com/connect-service-protocol: "http"
# consul.hashicorp.com/service-tags: "v2"
# consul.hashicorp.com/connect-service-upstreams: " go-movies-favorites-app:8081, vault:8200, pq-postgresql:5432"
# name: go-movies-app
# labels:
# app: go-movies-app
# version: v2
# spec:
# serviceAccountName: vault-auth
# automountServiceAccountToken: true
# containers:
# - name: go-movies-app
# image: aklaas2/go-movies-app-v2:latest
# ports:
# - containerPort: 8080
# protocol: TCP