Commit 49642f5f authored by Thibault Rolland's avatar Thibault Rolland
Browse files

premier deploiement

parent 0338cb46
##########
# FORMAT #
##########
# All arguments are optional.
# Only the keys in this list are interpreted, the others are ignored.
# Each list item (start with '-') can be duplicated as many times as necessary.
# The easiest way to create a new configuration is to copy this document and modify it.
name: ws.resif.fr
# BASE
port: 80
url: /
containers:
- image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws.resif.fr/ws-resif-fr
port: 80
cpu_request: 100m
mem_request: 50M
cpu_limit: 200m
mem_limit: 64M
# ENVIRONMENTS
contexts:
- name: staging
containers:
- tag: 03c9e2dc
host: ws-staging.resif.fr
- name: production
containers:
- tag: c8ee237e
host: ws.resif.fr
apiVersion: apps/v1
kind: Deployment
metadata:
name: ws.resif.fr-deployment
spec:
template:
spec:
containers:
- envFrom:
- configMapRef:
name: ws.resif.fr-configmap
image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws.resif.fr/ws-resif-fr
name: ws.resif.fr
ports:
- containerPort: 80
resources:
limits:
cpu: 200m
memory: 64M
requests:
cpu: 100m
memory: 50M
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ws.resif.fr-ingress
spec:
rules:
- http:
paths:
- backend:
service:
name: ws.resif.fr-service
port:
number: 80
path: /
pathType: Prefix
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
- ingress.yaml
apiVersion: v1
kind: Service
metadata:
name: ws.resif.fr-service
spec:
ports:
- port: 80
type: ClusterIP
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./overlays/staging
- ./overlays/production
apiVersion: kustomize.config.k8s.io/v1beta1
commonLabels:
app: ws.resif.fr
context: production
configMapGenerator:
- env: config.properties
name: ws.resif.fr-configmap
images:
- name: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws.resif.fr/ws-resif-fr
newTag: c8ee237e
kind: Kustomization
namePrefix: production-
patches:
- patch: |- # Ajout de l hote ws(-staging).resif.fr':
- op: add
path: /spec/rules/0/host
value: ws.resif.fr
target:
kind: Ingress
name: ws.resif.fr-ingress
replicas:
- count: 1
name: ws.resif.fr-deployment
resources:
- ../../base
apiVersion: kustomize.config.k8s.io/v1beta1
commonLabels:
app: ws.resif.fr
context: staging
configMapGenerator:
- env: config.properties
name: ws.resif.fr-configmap
images:
- name: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws.resif.fr/ws-resif-fr
newTag: 03c9e2dc
kind: Kustomization
namePrefix: staging-
patches:
- patch: |- # Ajout de l hote ws(-staging).resif.fr':
- op: add
path: /spec/rules/0/host
value: ws-staging.resif.fr
target:
kind: Ingress
name: ws.resif.fr-ingress
replicas:
- count: 1
name: ws.resif.fr-deployment
resources:
- ../../base
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment