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
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 | |
kind: Kustomization | |
metadata: | |
name: app | |
namespace: flux-system | |
spec: | |
interval: 1m | |
sourceRef: | |
kind: GitRepository | |
name: flux-system |
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: mywebapp-ingress | |
namespace: mywebapp | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
spec: | |
rules: | |
- http: |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: web | |
namespace: mywebapp | |
labels: | |
name: web | |
app: mywebapp | |
spec: | |
selector: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: web | |
namespace: mywebapp | |
labels: | |
name: web | |
app: mywebapp | |
spec: | |
replicas: 3 |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: mywebapp |
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
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 | |
kind: Kustomization | |
metadata: | |
name: infrastructure | |
namespace: flux-system | |
spec: | |
interval: 1m | |
sourceRef: | |
kind: GitRepository | |
name: flux-system |
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
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | |
kind: HelmRelease | |
metadata: | |
name: ingress-nginx | |
namespace: ingress-system | |
spec: | |
interval: 5m | |
chart: | |
spec: | |
chart: ingress-nginx |
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
apiVersion: source.toolkit.fluxcd.io/v1beta1 | |
kind: HelmRepository | |
metadata: | |
name: ingress-nginx | |
namespace: flux-system | |
spec: | |
interval: 30m | |
url: https://kubernetes.github.io/ingress-nginx |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ingress-system |
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
# Create DOKS clusters | |
doctl k8s cluster create do-demo-blr1 --region blr1 --size s-4vcpu-8gb --count=1 | |
doctl k8s cluster create do-demo-sgp1 --region sgp1 --size s-4vcpu-8gb --count=1 | |
doctl k8s cluster create do-demo-lon1 --region lon1 --size s-4vcpu-8gb --count=1 | |
# Configure kubeconfig | |
doctl k8s clusters kubeconfig save do-demo-blr1 | |
doctl k8s clusters kubeconfig save do-demo-sgp1 | |
doctl k8s clusters kubeconfig save do-demo-lon1 |