Skip to content

Commit 447afde

Browse files
mark.lynchmlladb
authored andcommitted
Update readme to refenrece upstream
1 parent ccad92b commit 447afde

File tree

10 files changed

+38
-120
lines changed

10 files changed

+38
-120
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ build/_output
2020
bin/kustomize
2121
bin/node-specific-sizing
2222
deploy.yaml
23-
build.yaml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Helps you resize pods created by a DaemonSet depending on the amount of allocata
77
### Install
88

99
```bash
10-
helm repo add node-specific-sizing https://mlladb.github.io/kubernetes-node-specific-sizing/
10+
helm repo add node-specific-sizing https://manomanotech.github.io/kubernetes-node-specific-sizing/
1111
helm repo update
1212
helm repo list
1313
helm install node-specific-sizing node-specific-sizing/node-specific-sizing --namespace node-specific-sizing --create-namespace

charts/node-specific-sizing/templates/mutatingadmissionwebhook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: admissionregistration.k8s.io/v1
22
kind: MutatingWebhookConfiguration
33
metadata:
4-
name: {{ include "chart.fullname" . }}-mutating-webhook-configuration
4+
name: {{ include "chart.fullname" . }}-webhook
55
annotations:
66
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "chart.fullname" . }}-serving-cert'
77
labels:

deploy/certmanager.yaml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,59 @@
11
kind: Issuer
22
apiVersion: cert-manager.io/v1
33
metadata:
4-
name: node-specific-sizing-ca-bootstrap
5-
namespace: node-specific-sizing
4+
name: ca-bootstrap
5+
namespace: kube-system
66
spec:
77
selfSigned: {}
88
---
99
kind: Certificate
1010
apiVersion: cert-manager.io/v1
1111
metadata:
12-
name: node-specific-sizing-ca-root
13-
namespace: node-specific-sizing
12+
name: ca-root
13+
namespace: kube-system
1414
spec:
15-
secretName: node-specific-sizing-ca-root
15+
secretName: ca-root
1616
isCA: true
17-
commonName: node-specific-sizing-ca-root
17+
commonName: ca-root
1818
subject:
19-
countries: [ "AU" ]
20-
organizations: [ "Entain Internal" ]
19+
countries: [ "FR" ]
20+
organizations: [ "ManoMano Internal" ]
2121
privateKey:
2222
algorithm: RSA
2323
size: 2048
2424
issuerRef:
2525
kind: Issuer
26-
name: node-specific-sizing-ca-bootstrap
26+
name: ca-bootstrap
2727
---
2828
kind: Issuer
2929
apiVersion: cert-manager.io/v1
3030
metadata:
31-
name: node-specific-sizing-ca-root
32-
namespace: node-specific-sizing
31+
name: ca-root
32+
namespace: kube-system
3333
spec:
3434
ca:
35-
secretName: node-specific-sizing-ca-root
35+
secretName: ca-root
3636
---
3737
apiVersion: cert-manager.io/v1
3838
kind: Certificate
3939
metadata:
40+
labels:
41+
app.kubernetes.io/component: certificate
42+
app.kubernetes.io/created-by: kubernetes-node-specific-sizing
43+
app.kubernetes.io/instance: serving-cert
44+
app.kubernetes.io/managed-by: kustomize
45+
app.kubernetes.io/name: certificate
46+
app.kubernetes.io/part-of: kubernetes-node-specific-sizing
4047
name: node-specific-sizing-serving-cert
41-
namespace: node-specific-sizing
48+
namespace: kube-system
4249
spec:
4350
dnsNames:
44-
- node-specific-sizing.node-specific-sizing.svc
45-
- node-specific-sizing.node-specific-sizing.svc.cluster.local
51+
- node-specific-sizing.kube-system.svc
52+
- node-specific-sizing.kube-system.svc.cluster.local
4653
issuerRef:
47-
name: node-specific-sizing-ca-root
54+
name: ca-root
4855
kind: Issuer
49-
secretName: node-specific-sizing-serving-cert
56+
secretName: node-specific-sizing-cert
5057
isCA: false
5158
privateKey:
5259
algorithm: RSA
@@ -58,13 +65,13 @@ kind: Certificate
5865
apiVersion: cert-manager.io/v1
5966
metadata:
6067
name: node-specific-sizing-client-cert
61-
namespace: node-specific-sizing
68+
namespace: kube-system
6269
spec:
6370
issuerRef:
64-
name: node-specific-sizing-ca-root
71+
name: ca-root
6572
kind: Issuer
66-
commonName: api-server-client-cert-for-node-specific-sizing
67-
secretName: node-specific-sizing-client-cert
73+
commonName: api-server-client-cert-for-node-specific-sizing.manomano.tech
74+
secretName: client-cert
6875
duration: 2160h
6976
renewBefore: 360h
7077
isCA: false

deploy/clusterrolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ roleRef:
1111
subjects:
1212
- kind: ServiceAccount
1313
name: node-specific-sizing
14-
namespace: node-specific-sizing
14+
namespace: kube-system

deploy/deployment.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: node-specific-sizing
5-
namespace: node-specific-sizing
65
labels:
76
app: node-specific-sizing
87
spec:
@@ -19,7 +18,7 @@ spec:
1918
terminationGracePeriodSeconds: 10
2019
containers:
2120
- name: node-specific-sizing
22-
image: ghcr.io/manomanotech/kubernetes-node-specific-sizing:sha-28e2a98
21+
image: node-specific-sizing:latest
2322
imagePullPolicy: IfNotPresent
2423
env:
2524
- name: POD_NAMESPACE
@@ -28,12 +27,12 @@ spec:
2827
fieldPath: metadata.namespace
2928
volumeMounts:
3029
- mountPath: /tmp/k8s-webhook-server/serving-certs
31-
name: node-specific-sizing-serving-cert
30+
name: cert
3231
readOnly: true
3332
securityContext:
3433
runAsNonRoot: true
3534
volumes:
36-
- name: node-specific-sizing-serving-cert
35+
- name: cert
3736
secret:
3837
defaultMode: 420
39-
secretName: node-specific-sizing-serving-cert
38+
secretName: node-specific-sizing-cert

deploy/kustomization.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3-
namespace: node-specific-sizing
3+
namespace: kube-system
44

55
resources:
66
- certmanager.yaml
@@ -10,8 +10,3 @@ resources:
1010
- serviceaccount.yaml
1111
- mutatingadmissionwebhook.yaml
1212
- service.yaml
13-
14-
labels:
15-
- pairs:
16-
app: node-specific-sizing
17-
user: mark-lynch

deploy/mutatingadmissionwebhook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: admissionregistration.k8s.io/v1
33
metadata:
44
name: node-specific-sizing
55
annotations:
6-
cert-manager.io/inject-ca-from: node-specific-sizing/node-specific-sizing-client-cert
6+
cert-manager.io/inject-ca-from: kube-system/node-specific-sizing-client-cert
77
webhooks:
88
- name: node-specific-sizing.svc.cluster.local
99
objectSelector:
@@ -15,7 +15,7 @@ webhooks:
1515
timeoutSeconds: 2
1616
clientConfig:
1717
service:
18-
namespace: node-specific-sizing
18+
namespace: kube-system
1919
name: node-specific-sizing
2020
path: /mutate
2121
rules:

sleep-daemonset.yaml

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)