Ingress Installation Logs
Preface
This document is created to logs all the activity during the attempt to install Ingress on PKC Cluster. There are several versions of kubernetes that is available, on this attempt the version that we are goint to install is the Ingress develop by NGINX Organization and stored in below github URL.
https://github.com/nginxinc/kubernetes-ingress
Documentation also available on
https://docs-1-12--nginx-kubernetes-ingress.netlify.app/nginx-ingress-controller/
This first attemp will follow below particular page.
https://docs-1-12--nginx-kubernetes-ingress.netlify.app/nginx-ingress-controller/installation/installation-with-manifests/
Installation with Manifest
- Clone Repository in working folder
Clone Repository into local folder, in this case is the master-aws node. [54.213.178.159]
$ git clone https://github.com/nginxinc/kubernetes-ingress/ $ cd kubernetes-ingress/deployments $ git checkout v1.12.0
- Configuring RBAC
Using version v1.12.0, once the repository is cloned, next step is to configure RBAC, Role Base Access Control
$ kubectl apply -f common/ns-and-sa.yaml $ kubectl apply -f rbac/rbac.yaml $ kubectl apply -f rbac/ap-rbac.yaml
Below are the output, that are the resources created
namespace/nginx-ingress created serviceaccount/nginx-ingress created clusterrole.rbac.authorization.k8s.io/nginx-ingress created clusterrolebinding.rbac.authorization.k8s.io/nginx-ingress created clusterrole.rbac.authorization.k8s.io/nginx-ingress-app-protect unchanged clusterrolebinding.rbac.authorization.k8s.io/nginx-ingress-app-protect unchanged
- Create commong resources
$ kubectl apply -f common/default-server-secret.yaml $ kubectl apply -f common/nginx-config.yaml $ kubectl apply -f common/ingress-class.yaml
Output
secret/default-server-secret created configmap/nginx-config created Warning: networking.k8s.io/v1beta1 IngressClass is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 IngressClassList ingressclass.networking.k8s.io/nginx unchanged