mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Exporting ResourceMetrics and PodCharts to extension API (#7326) Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix update button being visible when download for update fails (#7336) Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Update repository in statefulset template from k8s.gcr.io to registry.k8s (#7338) Signed-off-by: EnriqueTejeda <quique.tejeda.68@gmail.com> * Fix cluster view broken scrolling (#7349) Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Release 6.4.7 Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix release tool Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: EnriqueTejeda <quique.tejeda.68@gmail.com> Signed-off-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com> Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Co-authored-by: Enrique Tejeda <quique.tejeda.68@gmail.com>
35 lines
800 B
YAML
35 lines
800 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: web
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: nginx # has to match .spec.template.metadata.labels
|
|
serviceName: "nginx"
|
|
replicas: 3 # by default is 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx # has to match .spec.selector.matchLabels
|
|
spec:
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: nginx
|
|
image: registry.k8s.io/nginx-slim:0.8
|
|
ports:
|
|
- containerPort: 80
|
|
name: web
|
|
volumeMounts:
|
|
- name: www
|
|
mountPath: /usr/share/nginx/html
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: www
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
storageClassName: "my-storage-class"
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|