-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7602a39
commit e59e3ae
Showing
16 changed files
with
158 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: quick-links-argocd-app | ||
namespace: argocd | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/sujeet-agrahari/quick-links.git | ||
targetRevision: HEAD | ||
path: deploy/quick-links-charts | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: quick-links | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
automated: true | ||
selfHeal: true | ||
prune: true | ||
|
||
|
||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# switch to namespace | ||
kubectl config set-context --current --namespace=default | ||
|
||
# get the current switched namespace | ||
kubectl config view --minify --output 'jsonpath={..namespace}' | ||
|
||
kubectl config view | grep namespace |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#will create kubernetes-dashboard namespace | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml | ||
|
||
|
||
# Link | ||
|
||
# http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:https/proxy/#/login | ||
|
||
# create token | ||
kubectl create token dashboard-sa | pbcopy | ||
|
||
|
||
# for cluster roles | ||
# https://surajblog.medium.com/simplified-deployment-of-kubernetes-dashboard-with-alb-ingress-controller-bf3396c0dc54 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# default namesapce | ||
helm install kong kong/kong --set admin.useTLS=false,admin.enabled=true,admin.http.enabled=true,env.admin_gui_path=/kong-manager,env.admin_gui_url=http://localhost/kong-manager,env.admin_gui_api_url=http://localhost/kong-admin | ||
|
||
|
||
|
||
# enable kong admin api | ||
kubectl port-forward svc/kong-kong-admin 8001:8001 | ||
|
||
# enable kong manager | ||
kubectl port-forward svc/kong-kong-manager 8002:8002 | ||
|
||
|
||
|
||
# Better way change the path of admin and manager | ||
|
||
helm install kong kong/kong --set admin.useTLS=false,admin.enabled=true,admin.http.enabled=true,manager.ingress.path=/kong-manager,admin.ingress.path=/kong-admin,manager.ingress.enabled=true,admin.ingress.enabled=true | ||
|
||
|
||
# upgrade values | ||
|
||
helm upgrade kong kong/kong --set admin.useTLS=false,admin.enabled=true,admin.http.enabled=true,manager.ingress.path=/kong-manager,admin.ingress.path=/kong-admin,manager.ingress.enabled=true,admin.ingress.enabled=true | ||
|
||
helm install kong kong/kong --set admin.useTLS=false,admin.enabled=true,admin.http.enabled=true,env.admin_gui_path=/kong-manager,env.admin_gui_url=http://localhost/kong-manager,env.admin_gui_api_url=http://localhost/kong-admin | ||
|
||
# https://jaygorrell.medium.com/kubernetes-ingress-82aa960f658e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kubernetes-dashboard-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: 'kong' | ||
konghq.com/strip-path: 'true' | ||
namespace: kubernetes-dashboard | ||
spec: | ||
rules: | ||
- host: localhost | ||
http: | ||
paths: | ||
- path: /dashboard | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: kubernetes-dashboard | ||
port: | ||
number: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kong-admin-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: 'kong' | ||
konghq.com/strip-path: 'true' | ||
spec: | ||
rules: | ||
- host: localhost | ||
http: | ||
paths: | ||
- path: /kong-admin | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: kong-kong-admin | ||
port: | ||
number: 8001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kong-manager-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: 'kong' | ||
konghq.com/strip-path: 'false' | ||
spec: | ||
rules: | ||
- host: localhost | ||
http: | ||
paths: | ||
- path: /kong-manager | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: kong-kong-manager | ||
port: | ||
number: 8002 |
This file was deleted.
Oops, something went wrong.
15 changes: 5 additions & 10 deletions
15
kubernetes/kong/quick-link-ingress.yaml → kubernetes/kong/quick-links-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: IngressClass | ||
metadata: | ||
name: kong | ||
spec: | ||
controller: ingress-controllers.konghq.com/kong | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: quick-links-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: kong | ||
kubernetes.io/ingress.class: 'kong' | ||
konghq.com/strip-path: 'true' | ||
spec: | ||
rules: | ||
- http: | ||
- host: localhost | ||
http: | ||
paths: | ||
- path: /quick-links | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: quick-links-service | ||
port: | ||
name: quick-links | ||
number: 3000 |
Oops, something went wrong.