Skip to content
Snippets Groups Projects
Commit ae84c54c authored by Nico Pögel's avatar Nico Pögel
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 387 additions and 0 deletions
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: migration-myaktion-helm
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
apiVersion: apps/v1
kind: Deployment
metadata:
name: migration-myaktion-db-deployment
spec:
replicas: 1
selector:
matchLabels:
app: migration-myaktion-db
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: migration-myaktion-db
spec:
containers:
- name: migration-myaktion-db
image: postgres:14.5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5432
env:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: migration-myaktion-db-secret
key: DATABASE_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: migration-myaktion-db-secret
key: DATABASE_PASSWORD
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: migration-myaktion-db-pv-claim
subPath: migration
volumes:
- name: migration-myaktion-db-pv-claim
persistentVolumeClaim:
claimName: migration-myaktion-db-pv-claim
apiVersion: apps/v1
kind: Deployment
metadata:
name: migration-myaktion-deployment
spec:
replicas: 1
selector:
matchLabels:
app: migration-myaktion
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: migration-myaktion
spec:
containers:
- name: migration-myaktion
image: romanolu/my-aktion-migration:latest
imagePullPolicy: Always
ports:
- containerPort: 8443
env:
- name: DB_URL
value: migration-myaktion-db-service
- name: GRPC_IP
value: migration-myaktion-monitor-service
- name: ISSUER_URL
value: migration-myaktion-frontend-service
- name: QUARKUS_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: migration-myaktion-db-secret
key: DATABASE_USER
- name: QUARKUS_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: migration-myaktion-db-secret
key: DATABASE_PASSWORD
- name: SPRING_DATASOURCE_URL
value: "jdbc:postgresql://myaktion-postgres-db/postgres"
- name: URL_MYAKTION_MONITOR
value: "http://myaktion-monitor-service/donations"
- name: SPRING_REDIS_HOST
value: "redis-service"
apiVersion: apps/v1
kind: Deployment
metadata:
name: migration-myaktion-frontend-deployment
spec:
replicas: 1
selector:
matchLabels:
app: migration-myaktion-frontend
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: migration-myaktion-frontend
spec:
containers:
- name: migration-myaktion-frontend
image: romanolu/my-aktion-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: REACT_APP_MYAKTION_URL
value: http://134.103.212.72:30249
apiVersion: apps/v1
kind: Deployment
metadata:
name: migration-myaktion-monitor-deployment
spec:
replicas: 1
selector:
matchLabels:
app: migration-myaktion-monitor
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: migration-myaktion-monitor
spec:
containers:
- name: migration-myaktion-monitor
image: romanolu/my-aktion-monitor-migration:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: PROVIDER_URL
value: http://migration-myaktion-service:8443
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
annotations:
kubernetes.io/ingress.class: traefik
creationTimestamp: null
name: migration-myaktion-ingress-route
namespace: default
spec:
routes:
- kind: Rule
match: PathPrefix(`/*`)
services:
- kind: Service
name: migration-myaktion-monitor-service
namespace: default
port: 8080
- kind: Rule
match: PathPrefix(`/*`)
services:
- kind: Service
name: migration-myaktion-frontend-service
namespace: default
port: 3000
- kind: Rule
match: PathPrefix(`/hello`)
services:
- kind: Service
name: migration-myaktion-service
namespace: default
port: 8443
kind: PersistentVolume
apiVersion: v1
metadata:
name: migration-myaktion-db-pv
labels:
type: local
spec:
storageClassName: standard
capacity:
storage: 100M
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/migration"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: migration-myaktion-db
name: migration-myaktion-db-pv-claim
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100M
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: migration-myaktion-db-secret
data:
DATABASE_USER: dXNlcjE=
DATABASE_PASSWORD: cGFzc3dvcmQx
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: migration-myaktion-db-service
spec:
selector:
app: migration-myaktion-db
ports:
- protocol: TCP
port: 5432
targetPort: 5432
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: migration-myaktion-frontend-service
spec:
selector:
app: migration-myaktion-frontend
ports:
- protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30002
type: NodePort
apiVersion: v1
kind: Service
metadata:
name: migration-myaktion-monitor-service
spec:
selector:
app: migration-myaktion-monitor
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30003
type: NodePort
apiVersion: v1
kind: Service
metadata:
name: migration-myaktion-service
spec:
selector:
app: migration-myaktion
ports:
- protocol: TCP
port: 8443
targetPort: 8443
type: LoadBalancer
# Default values for helm-msa.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment