mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Add compiled jsonnet for "with extras" to validate extra options * Add withInet6 to demonstrate new compiled approach * Add config to enable VPA on components
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: memcached
|
|
namespace: tracing
|
|
spec:
|
|
replicas: 5
|
|
selector:
|
|
matchLabels:
|
|
name: memcached
|
|
serviceName: memcached
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: memcached
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
name: memcached
|
|
topologyKey: kubernetes.io/hostname
|
|
containers:
|
|
- args:
|
|
- -m 1024
|
|
- -I 5m
|
|
- -c 4096
|
|
- -v
|
|
image: memcached:1.6.40-alpine
|
|
imagePullPolicy: IfNotPresent
|
|
name: memcached
|
|
ports:
|
|
- containerPort: 11211
|
|
name: client
|
|
resources:
|
|
limits:
|
|
memory: 1536Mi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1329Mi
|
|
- args:
|
|
- --memcached.address=localhost:11211
|
|
- --web.listen-address=0.0.0.0:9150
|
|
image: prom/memcached-exporter:v0.15.5
|
|
imagePullPolicy: IfNotPresent
|
|
name: exporter
|
|
ports:
|
|
- containerPort: 9150
|
|
name: http-metrics
|
|
updateStrategy:
|
|
type: RollingUpdate
|