Skip to content

Commit 9f8db61

Browse files
committed
Welcome to Stack Simplify
1 parent 739d002 commit 9f8db61

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed

2023-December-Changes.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# December 2023 Changes
2+
3+
## Step-01: Ingress Class Name Argument added in Ingress Services
4+
- Updated in `sections: 09, 10, 12, 13, 14`
5+
```yaml
6+
# List Ingress Clasess from k8s Cluster
7+
kubectl get ingressclass
8+
9+
# Change-1: Comment the below annotation because its deprecated
10+
annotations:
11+
#kubernetes.io/ingress.class: "nginx"
12+
13+
# Change-2: Add the `ingressClassName` in ingress.spec
14+
spec:
15+
ingressClassName: nginx
16+
```
17+
18+
## Step-02: Section-10 Ingress Service defaultBackend
19+
- `defaultBackend` not working
20+
```yaml
21+
## COMMENTED defaultBackend
22+
#defaultBackend:
23+
# service:
24+
# name: usermgmt-webapp-clusterip-service
25+
# port:
26+
# number: 80
27+
28+
## UNCOMMENTED ROOT CONTEXT PATH
29+
- path: /
30+
pathType: Prefix
31+
backend:
32+
service:
33+
name: usermgmt-webapp-clusterip-service
34+
port:
35+
number: 80
36+
37+
```
38+
39+
## Step-03: Section-12: Updated external-dns.yaml
40+
- Updated the `external-dns.yaml`, primarily the latest Docker Image `registry.k8s.io/external-dns/external-dns:v0.14.0`
41+
```yaml
42+
apiVersion: v1
43+
kind: ServiceAccount
44+
metadata:
45+
name: external-dns
46+
---
47+
apiVersion: rbac.authorization.k8s.io/v1
48+
kind: ClusterRole
49+
metadata:
50+
name: external-dns
51+
rules:
52+
- apiGroups: [""]
53+
resources: ["services","endpoints","pods", "nodes"]
54+
verbs: ["get","watch","list"]
55+
- apiGroups: ["extensions","networking.k8s.io"]
56+
resources: ["ingresses"]
57+
verbs: ["get","watch","list"]
58+
---
59+
apiVersion: rbac.authorization.k8s.io/v1
60+
kind: ClusterRoleBinding
61+
metadata:
62+
name: external-dns-viewer
63+
roleRef:
64+
apiGroup: rbac.authorization.k8s.io
65+
kind: ClusterRole
66+
name: external-dns
67+
subjects:
68+
- kind: ServiceAccount
69+
name: external-dns
70+
namespace: default
71+
---
72+
apiVersion: apps/v1
73+
kind: Deployment
74+
metadata:
75+
name: external-dns
76+
spec:
77+
strategy:
78+
type: Recreate
79+
selector:
80+
matchLabels:
81+
app: external-dns
82+
template:
83+
metadata:
84+
labels:
85+
app: external-dns
86+
spec:
87+
serviceAccountName: external-dns
88+
containers:
89+
- name: external-dns
90+
image: registry.k8s.io/external-dns/external-dns:v0.14.0
91+
args:
92+
- --source=service
93+
- --source=ingress
94+
#- --domain-filter=example.com # (optional) limit to only example.com domains; change to match the zone created above.
95+
- --provider=azure
96+
#- --azure-resource-group=MyDnsResourceGroup # (optional) use the DNS zones from the tutorial's resource group
97+
- --txt-prefix=externaldns-
98+
volumeMounts:
99+
- name: azure-config-file
100+
mountPath: /etc/kubernetes
101+
readOnly: true
102+
volumes:
103+
- name: azure-config-file
104+
secret:
105+
secretName: azure-config-file
106+
```
107+
108+
## Step-04: Section-14: Updated cert-manager to latest version
109+
```t
110+
# Change-1: Helm Command with latest version
111+
helm install \
112+
cert-manager jetstack/cert-manager \
113+
--namespace ingress-basic \
114+
--version v1.13.3 \
115+
--set installCRDs=true
116+
117+
# Change-2: cluster-issuer.yaml
118+
- Added the "ingressClassName: nginx"
119+
### BEFORE CHANGE
120+
solvers:
121+
- http01:
122+
ingress:
123+
class: nginx
124+
125+
### AFTER CHANGE
126+
solvers:
127+
- http01:
128+
ingress:
129+
ingressClassName: nginx
130+
```

0 commit comments

Comments
 (0)