Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate changes to all versions
Browse files Browse the repository at this point in the history
jonathan-innis committed Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 47512dc commit 6402a2a
Showing 4 changed files with 132 additions and 128 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
@@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
@@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
@@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
@@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
@@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
@@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cat <<EOF | envsubst | kubectl apply -f -
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-leader-election
@@ -13,22 +13,23 @@ spec:
rules:
- resourceRules:
- apiGroups:
- coordination.k8s.io
- coordination.k8s.io
namespaces:
- '*'
- '*'
resources:
- leases
- leases
verbs:
- get
- create
- update
- get
- create
- update
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
---
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
name: karpenter-workload
@@ -39,24 +40,24 @@ spec:
priorityLevelConfiguration:
name: workload-high
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: karpenter
namespace: "${KARPENTER_NAMESPACE}"
EOF

0 comments on commit 6402a2a

Please sign in to comment.