Compare commits
1 Commits
main
...
1a9a403b74
Author | SHA1 | Date | |
---|---|---|---|
1a9a403b74 |
@@ -21,14 +21,12 @@ spec:
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: MEMCACHED_HOST_PATH
|
||||
value: "memcached:11211"
|
||||
- name: NUM_WORKERS
|
||||
value: "3"
|
||||
- name: OSM_CACHE_DIR
|
||||
value: "/osm-cache"
|
||||
- name: LOKI_URL
|
||||
value: "http://loki.monitoring.svc:3100/loki/api/v1/push"
|
||||
- name: MEMCACHED_HOST_PATH
|
||||
value: "memcached:11211"
|
||||
volumeMounts:
|
||||
- name: osm-cache
|
||||
mountPath: /osm-cache
|
||||
|
@@ -6,10 +6,6 @@ resources:
|
||||
|
||||
namespace: anyway-backend
|
||||
nameSuffix: -prod
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
env: prod
|
||||
|
||||
images:
|
||||
- name: backend-image
|
||||
@@ -21,7 +17,3 @@ patches:
|
||||
target:
|
||||
kind: IngressRoute
|
||||
name: anyway-ingress
|
||||
- path: patch-deployment-memcached-address.yaml
|
||||
target:
|
||||
kind: Deployment
|
||||
name: anyway-backend
|
||||
|
@@ -1,3 +0,0 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/env/0/value
|
||||
value: "memcached-prod:11211"
|
@@ -1,6 +1,3 @@
|
||||
- op: replace
|
||||
- op: replace #action
|
||||
path: /spec/routes/0/match
|
||||
value: Host(`anyway.anydev.info`) || Host(`anyway.kluster.moll.re`)
|
||||
- op: replace
|
||||
path: /spec/routes/0/services/0/name
|
||||
value: anyway-backend-prod
|
@@ -6,12 +6,6 @@ resources:
|
||||
|
||||
namespace: anyway-backend
|
||||
nameSuffix: -stg
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
env: stg
|
||||
|
||||
|
||||
images:
|
||||
- name: backend-image
|
||||
newName: git.kluster.moll.re/anydev/anyway-backend
|
||||
@@ -22,12 +16,3 @@ patches:
|
||||
target:
|
||||
kind: IngressRoute
|
||||
name: anyway-ingress
|
||||
- path: patch-deployment-memcached-address.yaml
|
||||
target:
|
||||
kind: Deployment
|
||||
name: anyway-backend
|
||||
- path: patch-deployment.yaml
|
||||
target:
|
||||
kind: Deployment
|
||||
name: anyway-backend
|
||||
|
||||
|
@@ -1,3 +0,0 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/env/0/value
|
||||
value: "memcached-stg:11211"
|
@@ -1,5 +0,0 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/env/-
|
||||
value:
|
||||
name: DEBUG
|
||||
value: "true"
|
@@ -1,6 +1,3 @@
|
||||
- op: replace #action
|
||||
path: /spec/routes/0/match
|
||||
value: Host(`anyway-stg.anydev.info`) || Host(`anyway-stg.kluster.moll.re`)
|
||||
- op: replace
|
||||
path: /spec/routes/0/services/0/name
|
||||
value: anyway-backend-stg
|
10
rbac.yaml
10
rbac.yaml
@@ -4,16 +4,12 @@ metadata:
|
||||
namespace: anyway-backend
|
||||
name: deployment-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
- "apps"
|
||||
- "traefik.io"
|
||||
- apiGroups: [""] # "" indicates the core API group
|
||||
resources:
|
||||
- pods
|
||||
- services
|
||||
- deployments
|
||||
- ingressroutes
|
||||
- persistentvolumeclaims
|
||||
- ingresses
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
@@ -59,3 +55,5 @@ metadata:
|
||||
annotations:
|
||||
kubernetes.io/service-account.name: deployment-sa
|
||||
type: kubernetes.io/service-account-token
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user