5 changed files with 2 additions and 75 deletions
@ -1,51 +0,0 @@ |
|||||
--- |
|
||||
apiVersion: apps/v1 |
|
||||
kind: Deployment |
|
||||
metadata: |
|
||||
name: front-end |
|
||||
spec: |
|
||||
replicas: 1 |
|
||||
selector: |
|
||||
matchLabels: |
|
||||
name: front-end |
|
||||
template: |
|
||||
metadata: |
|
||||
labels: |
|
||||
name: front-end |
|
||||
spec: |
|
||||
containers: |
|
||||
- name: front-end |
|
||||
image: weaveworksdemos/front-end:0.3.12 |
|
||||
resources: |
|
||||
limits: |
|
||||
cpu: 300m |
|
||||
memory: 1000Mi |
|
||||
requests: |
|
||||
cpu: 100m |
|
||||
memory: 300Mi |
|
||||
ports: |
|
||||
- containerPort: 8079 |
|
||||
env: |
|
||||
- name: SESSION_REDIS |
|
||||
value: "true" |
|
||||
securityContext: |
|
||||
runAsNonRoot: true |
|
||||
runAsUser: 10001 |
|
||||
capabilities: |
|
||||
drop: |
|
||||
- all |
|
||||
readOnlyRootFilesystem: true |
|
||||
livenessProbe: |
|
||||
httpGet: |
|
||||
path: / |
|
||||
port: 8079 |
|
||||
initialDelaySeconds: 300 |
|
||||
periodSeconds: 3 |
|
||||
readinessProbe: |
|
||||
httpGet: |
|
||||
path: / |
|
||||
port: 8079 |
|
||||
initialDelaySeconds: 30 |
|
||||
periodSeconds: 3 |
|
||||
nodeSelector: |
|
||||
beta.kubernetes.io/os: linux |
|
@ -1,15 +0,0 @@ |
|||||
--- |
|
||||
apiVersion: v1 |
|
||||
kind: Service |
|
||||
metadata: |
|
||||
name: front-end |
|
||||
labels: |
|
||||
name: front-end |
|
||||
spec: |
|
||||
type: LoadBalancer |
|
||||
ports: |
|
||||
- port: 80 |
|
||||
targetPort: 8079 |
|
||||
nodePort: 30001 |
|
||||
selector: |
|
||||
name: front-end |
|
Loading…
Reference in new issue