mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-07-12 11:09:38 +00:00
nginx deployment
This commit is contained in:
47
k8s-deployment.yml
Normal file
47
k8s-deployment.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-service
|
||||
spec:
|
||||
selector:
|
||||
wasm.pong.io/name: nginx
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- name: nginx-port
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: http-svc
|
||||
- name: nginx-sec-port
|
||||
protocol: TCP
|
||||
port: 443
|
||||
targetPort: https-svc
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
wasm.pong.io/name: nginx
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
wasm.pong.io/name: nginx
|
||||
template:
|
||||
metadata:
|
||||
name: nginx
|
||||
labels:
|
||||
wasm.pong.io/name: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: client
|
||||
image: docker-registry:443/wasm-pong/nginx
|
||||
env:
|
||||
- name: API_SERVER
|
||||
value: pong-server-service
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http-svc
|
||||
- containerPort: 443
|
||||
name: https-svc
|
||||
Reference in New Issue
Block a user