Edge-health Admission
Edge-health admission sample config
edge-health/edge-health-admission.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: edge-health-admission
namespace: edge-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: edge-health-admission
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: edge-health-admission
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: edge-health-admission
subjects:
- kind: ServiceAccount
name: edge-health-admission
namespace: edge-system
---
apiVersion: v1
data:
server.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURYekNDQWtlZ0F3SUJBZ0lKQUovcUhvQ0ptUnNwTUEwR0NTcUdTSWIzRFFFQkJRVUFNRnN4Q3pBSkJnTlYKQkFZVEFrTk9NUkl3RUFZRFZRUUlEQWxIZFdGdVoyUnZibWN4RVRBUEJnTlZCQWNNQ0ZOb1pXNTZhR1Z1TVJBdwpEZ1lEVlFRS0RBZFVaVzVqWlc1ME1STXdFUVlEVlFRRERBcHpkWEJsY2kxbFpHZGxNQjRYRFRJeE1EVXhOekUwCk1qa3pORm9YRFRNMU1ERXlOREUwTWprek5Gb3dJREVlTUJ3R0ExVUVBd3dWWldSblpTMW9aV0ZzZEdndFlXUnQKYVhOemFXOXVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQXc5Z2lmY05QNkJPSQo1dVRLTWszUXZrOGQycm1lS2RsQTZoTTFCUUdrRjRpeG5ldlN6RUFScmR6V2ZDRzZFOGZnR0pGM0V6ZzI5L3FVCndGR2JKL1d5TVRWdDVoOU95ZlZZQ0dYeTlMZ1hBVlF5UVowRmpUajhTTkN5V014YnhxUk00Rks1dlNxUndKRzAKanh3TGF4c0pHejBpWEdCL3I4eHhiMFUxeDY0RXFkSW9ZY0tCL2ZQNnpxNzMxR2JKMDM2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
kind: Secret
metadata:
name: validate-admission-control-server-certs
namespace: edge-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: edge-health-admission
namespace: edge-system
spec:
replicas: 1
selector:
matchLabels:
k8s-app: edge-health-admission
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
k8s-app: edge-health-admission
spec:
containers:
- name: edge-health-admission
image: superedge/edge-health-admission:v0.3.0
imagePullPolicy: Always
command:
- edge-health-admission
args:
- --alsologtostderr
- --v=4
- --admission-control-server-cert=/etc/edge-health-admission/certs/server.crt
- --admission-control-server-key=/etc/edge-health-admission/certs/server.key
env:
- name: MASTER_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
volumeMounts:
- mountPath: /etc/edge-health-admission/certs
name: admission-server-certs
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 10m
memory: 20Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
- secret:
secretName: validate-admission-control-server-certs
name: admission-server-certs
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
serviceAccountName: edge-health-admission
---
apiVersion: v1
kind: Service
metadata:
name: edge-health-admission
namespace: edge-system
spec:
ports:
- port: 443
protocol: TCP
targetPort: 8443
selector:
k8s-app: edge-health-admission
type: ClusterIP
Last modified June 15, 2021 : Fixed error links and paths (fef537b)