Reloader
Reloader copied to clipboard
Issue with GKE 1.22.3-gke.1500
i try use reloader with GKE 1.22.3-gke.1500 have issue apply deployment with annotations configmap.reloader.stakater.com/reload: "production-abdi-configmap"
error: error validating "deployment.yaml": error validating data: ValidationError(Deployment): unknown field "annotations" in io.k8s.api.apps.v1.Deployment; if you choose to ignore these errors, turn validation off with --validate=false
step install
helm repo add stakater https://stakater.github.io/stakater-charts
helm repo update
helm install stakater/reloader --generate-name --set reloader.watchGlobally=false --namespace production
kubectl get pods -n production
NAME READY STATUS RESTARTS AGE
reloader-1640070947-reloader-5f55dbc46-hkqpt 1/1 Running 0 39s
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: abdi-test
namespace: production
annotations:
configmap.reloader.stakater.com/reload: "production-abdi-configmap"
spec:
replicas: 1
revisionHistoryLimit: 4
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 50%
selector:
matchLabels:
app: abdi-test
template:
metadata:
labels:
app: abdi-test
env: production
spec:
containers:
- envFrom:
- configMapRef:
name: production-abdi-configmap
name: abdi-test
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
requests:
cpu: "100m"
memory: "150Mi"
limits:
cpu: "400m"
memory: "600Mi"
configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: production-abdi-configmap
namespace: production
data:
DATABASE_FLAG_READ: mysql
DATABASE_FLAG_WRITE: mysql
DATABASE_MYSQL_READ_MAXOPENCONNS: "33"
already fix, put annotations under labels
template:
metadata:
labels:
app: abdi-test
env: production
annotations:
configmap.reloader.stakater.com/reload: "production-abdi-configmap"
spec:
containers:
- envFrom:
- configMapRef:
name: production-abdi-configmap
name: abdi-test
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
Reloader working perfect with latest Google Kubernetes Engine 1.22.3-gke.1500