Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions teams/team-rbraws/DR/manifests/StorageClass/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
name: bootstrap-applications
description: App of apps chart for the dev EKS environment.
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: aws-ebs-sc
provisioner: ebs.csi.aws.com
parameters:
tagSpecification_1: "EKSPVBackup=true"
encrypted: "true"
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: efs-sc
provisioner: efs.csi.aws.com





Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# RBAC file for the snapshot controller.
#
# The snapshot controller implements the control loop for CSI snapshot functionality.
# It should be installed as part of the base Kubernetes distribution in an appropriate
# namespace for components implementing base system functionality. For installing with
# Vanilla Kubernetes, kube-system makes sense for the namespace.

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: snapshot-controller
namespace: kube-system

---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: snapshot-controller-runner
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create", "update", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents/status"]
verbs: ["patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots/status"]
verbs: ["update", "patch"]
# Enable this RBAC rule only when using distributed snapshotting, i.e. when the enable-distributed-snapshotting flag is set to true
# - apiGroups: [""]
# resources: ["nodes"]
# verbs: ["get", "list", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: snapshot-controller-role
subjects:
- kind: ServiceAccount
name: snapshot-controller
namespace: kube-system
roleRef:
kind: ClusterRole
name: snapshot-controller-runner
apiGroup: rbac.authorization.k8s.io

---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: snapshot-controller-leaderelection
namespace: kube-system
rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: snapshot-controller-leaderelection
namespace: kube-system
subjects:
- kind: ServiceAccount
name: snapshot-controller
roleRef:
kind: Role
name: snapshot-controller-leaderelection
apiGroup: rbac.authorization.k8s.io

# This YAML file shows how to deploy the snapshot controller

# The snapshot controller implements the control loop for CSI snapshot functionality.
# It should be installed as part of the base Kubernetes distribution in an appropriate
# namespace for components implementing base system functionality. For installing with
# Vanilla Kubernetes, kube-system makes sense for the namespace.

---
kind: Deployment
apiVersion: apps/v1
metadata:
name: snapshot-controller
namespace: kube-system
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: snapshot-controller
# the snapshot controller won't be marked as ready if the v1 CRDs are unavailable
# in #504 the snapshot-controller will exit after around 7.5 seconds if it
# can't find the v1 CRDs so this value should be greater than that
minReadySeconds: 15
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/name: snapshot-controller
spec:
serviceAccountName: snapshot-controller
containers:
- name: snapshot-controller
image: registry.k8s.io/sig-storage/snapshot-controller:v6.3.1
args:
- "--v=5"
- "--leader-election=true"
# Add a marker to the snapshot-controller manifests. This is needed to enable feature gates in CSI prow jobs.
# For example, in https://github.com/kubernetes-csi/csi-release-tools/pull/209, the snapshot-controller YAML is updated to add --prevent-volume-mode-conversion=true so that the feature can be enabled for certain e2e tests.
# end snapshot controller args
imagePullPolicy: IfNotPresent

---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: ebs-volume-snapclass
driver: ebs.csi.aws.com
deletionPolicy: Delete
21 changes: 21 additions & 0 deletions teams/team-rbraws/DR/manifests/StorageClass/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
destinationServer: ''
argoNamespace: ''
argoProject: ''

labels:
env: bootstrap
spec:
destination:
server: https://kubernetes.default.svc
source:
repoURL: https://github.com/prabaksa/eks-blueprints-workloads
targetRevision: main

# Thoses default values can be surcharged by Infrastructure as Code
env: bootstrap
clusterName: eks-blueprint-cluster # the name of EKS cluster
blueprint: 'cdk' # cdk | terraform
karpenterInstanceProfile:
ingress:
type: '' # nginx | alb
host: # empty or your domain like dev.example.com
5 changes: 5 additions & 0 deletions teams/team-rbraws/Primary/manifests/StorageClass/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
name: bootstrap-applications
description: App of apps chart for the dev EKS environment.
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: aws-ebs-sc
provisioner: ebs.csi.aws.com
parameters:
tagSpecification_1: "EKSPVBackup=true"
encrypted: "true"
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: efs-sc
provisioner: efs.csi.aws.com





21 changes: 21 additions & 0 deletions teams/team-rbraws/Primary/manifests/StorageClass/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
destinationServer: ''
argoNamespace: ''
argoProject: ''

labels:
env: bootstrap
spec:
destination:
server: https://kubernetes.default.svc
source:
repoURL: https://github.com/prabaksa/eks-blueprints-workloads
targetRevision: main

# Thoses default values can be surcharged by Infrastructure as Code
env: bootstrap
clusterName: eks-blueprint-cluster # the name of EKS cluster
blueprint: 'cdk' # cdk | terraform
karpenterInstanceProfile:
ingress:
type: '' # nginx | alb
host: # empty or your domain like dev.example.com
36 changes: 36 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/db-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: db
name: db
spec:
replicas: 1
selector:
matchLabels:
app: db
template:
metadata:
labels:
app: db
spec:
containers:
- image: postgres:15-alpine
name: postgres
env:
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- containerPort: 5432
name: postgres
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: db-data
volumes:
- name: db-data
persistentVolumeClaim:
claimName: votingdb-pv-claim
14 changes: 14 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/db-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: votingdb-pv-claim
labels:
app: db
spec:
accessModes:
- ReadWriteOnce
storageClassName: aws-ebs-sc
resources:
requests:
storage: 20Gi
15 changes: 15 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/db-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: db
name: db
spec:
type: ClusterIP
ports:
- name: "db-service"
port: 5432
targetPort: 5432
selector:
app: db

29 changes: 29 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/redis-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- image: redis:alpine
name: redis
ports:
- containerPort: 6379
name: redis
volumeMounts:
- mountPath: /data
name: redis-data
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: redis-pv-claim
14 changes: 14 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/redis-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pv-claim
labels:
app: redis
spec:
accessModes:
- ReadWriteOnce
storageClassName: aws-ebs-sc
resources:
requests:
storage: 20Gi
15 changes: 15 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/redis-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: redis
name: redis
spec:
type: ClusterIP
ports:
- name: "redis-service"
port: 6379
targetPort: 6379
selector:
app: redis

22 changes: 22 additions & 0 deletions teams/team-rbraws/SampleApp/VotingApp/result-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: result
name: result
spec:
replicas: 1
selector:
matchLabels:
app: result
template:
metadata:
labels:
app: result
spec:
containers:
- image: dockersamples/examplevotingapp_result
name: result
ports:
- containerPort: 80
name: result
Loading