feat(ops/infra/k8s): Add website deployment configuration
This commit is contained in:
parent
87967d5be3
commit
d0800197c4
1 changed files with 37 additions and 0 deletions
37
ops/infra/kubernetes/website/config.yaml
Normal file
37
ops/infra/kubernetes/website/config.yaml
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: website
|
||||
labels:
|
||||
app: website
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: website
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: website
|
||||
spec:
|
||||
containers:
|
||||
- name: website
|
||||
image: nixery.local/shell/web.homepage:{{ gitHEAD }}
|
||||
env:
|
||||
- name: CONTAINER_SETUP
|
||||
value: "true"
|
||||
command: [ "homepage" ]
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: website
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: website
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
Loading…
Reference in a new issue