mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 18:19:35 +00:00
![Gabriel Arazas](/assets/img/avatar_default.png)
Hoorah! Finally made it through the course! On the other hand, I also updated the `concat-asset-folder` function to accept multiple arguments representing the directory hierarchy instead of a separator.
30 lines
621 B
YAML
30 lines
621 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
tag: alpine
|
|
name: nginx-alpine
|
|
namespace: {{ .Values.namespace.name }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: nginx
|
|
tag: alpine
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
tag: alpine
|
|
spec:
|
|
containers:
|
|
- image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
name: nginx-alpine
|