Deployment configuration parameter from file or Environment

Dear all,
I’m new in Kubernetes, there is a possibility to read deployment or service parameters from file or environment or ConfigMap?

As example

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-yaml
labels:
app.kubernetes.io/name: nginx-yaml-service
app.kubernetes.io/instance: nginx-yaml-service-06092021
environment: aks-test
spec:
replicas: $ReplicasNumber
selector:
matchLabels:
app: nginx-yaml
minReadySeconds: $minReadySeconds or configMap.minreadySec
strategy:
rollingUpdate:
maxSurge: $maxSurge or configMap.maxSurge
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: nginx-yaml

thanks

I can’t say that I’ve seen anything around that enables that kind of functionality. What are you trying to achieve, generic templating/modification or something else? If the former you’d want to look at things like helm, kustomize or kpt.