Refactored pipeline to own all its manifest resources
continuous-integration/drone/pr Build is passing
continuous-integration/drone/pr Build is passing
This commit is contained in:
@@ -7,7 +7,7 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
data:
|
data:
|
||||||
ASPNETCORE_ENVIRONMENT: "Development"
|
ASPNETCORE_ENVIRONMENT: "Development"
|
||||||
@@ -18,7 +18,7 @@ data:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
@@ -47,11 +47,11 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: shop
|
app: shopadmin
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: shop
|
app: shopadmin
|
||||||
spec:
|
spec:
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
@@ -61,7 +61,7 @@ spec:
|
|||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
containers:
|
containers:
|
||||||
- name: shop
|
- name: shopadmin
|
||||||
image: nexus.khongisa.co.za/litecharms-shopadmin:latest
|
image: nexus.khongisa.co.za/litecharms-shopadmin:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
@@ -75,32 +75,32 @@ spec:
|
|||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
env:
|
env:
|
||||||
- name: ConnectionStrings__PostgresScheduler
|
- name: ConnectionStrings__PostgresScheduler
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: connection-string-quartz
|
key: connection-string-quartz
|
||||||
- name: ConnectionStrings__PostgresShop
|
- name: ConnectionStrings__PostgresShop
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: connection-string
|
key: connection-string
|
||||||
- name: Monitoring__Address
|
- name: Monitoring__Address
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
key: Monitoring__Address
|
key: Monitoring__Address
|
||||||
- name: Monitoring__ServiceName
|
- name: Monitoring__ServiceName
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
key: Monitoring__ServiceName
|
key: Monitoring__ServiceName
|
||||||
- name: Monitoring__ApiKey
|
- name: Monitoring__ApiKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: aspire-apikey
|
key: aspire-apikey
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
@@ -126,12 +126,12 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-service
|
name: shopadmin-service
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: shop
|
app: shopadmin
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -141,7 +141,7 @@ spec:
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-web-secure
|
name: shopadmin-web-secure
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@@ -150,7 +150,7 @@ spec:
|
|||||||
- match: Host(`shopadmin.uat.khongisa.co.za`)
|
- match: Host(`shopadmin.uat.khongisa.co.za`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: shop-service
|
- name: shopadmin-service
|
||||||
port: 80
|
port: 80
|
||||||
sticky:
|
sticky:
|
||||||
cookie:
|
cookie:
|
||||||
|
|||||||
Reference in New Issue
Block a user