-
Notifications
You must be signed in to change notification settings - Fork 3
Changed deployment #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| apiVersion: v1 | ||
| data: | ||
| config.yaml: | | ||
| {{.Values.config}} | ||
|
|
||
| kind: ConfigMap | ||
| metadata: | ||
| name: certconf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,23 +17,34 @@ spec: | |
| containers: | ||
| - name: pubgrade | ||
| imagePullPolicy: IfNotPresent | ||
| image: akash7778/pubgrade:test_build | ||
| image: cerit.io/matej_hrachovec/pub_fix:debu | ||
| ports: | ||
| - containerPort: 8080 | ||
| volumeMounts: | ||
| - mountPath: {{ .Values.volumes.Pubgrade.pathToMountedDir }} | ||
| name: pubgrade-storage | ||
| - name: certconf | ||
| mountPath: /etc/ssl/certs/cert.pem | ||
| subPath: cert.pem | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| readOnly: false | ||
| env: | ||
| - name: NAMESPACE | ||
| value: {{ .Release.Namespace }} | ||
| - name: PV_NAME | ||
| value: {{ .Values.volumes.Pubgrade.name }} | ||
| - name: BASE_DIR | ||
| value: {{ .Values.volumes.Pubgrade.pathToMountedDir }} | ||
| securityContext: | ||
| runAsUser: 1000 | ||
| runAsGroup: 1000 | ||
| volumes: | ||
| - name: certconf | ||
| configMap: | ||
| name: certconf | ||
| - name: pubgrade-storage | ||
| persistentVolumeClaim: | ||
| claimName: {{ .Values.volumes.Pubgrade.name }} | ||
| #{{- if .Values.volumes.Pubgrade.deployLocalPv }} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why adding this? |
||
| initContainers: | ||
| - name: take-data-dir-ownership | ||
| image: alpine:3 | ||
|
|
@@ -45,3 +56,4 @@ spec: | |
| volumeMounts: | ||
| - name: pubgrade-storage | ||
| mountPath: {{ .Values.volumes.Pubgrade.pathToMountedDir }} | ||
| #{{end}} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why adding this? |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: mongodb | ||
| name: mongodb-{{ .Release.Name }} | ||
| labels: | ||
| app: db | ||
| spec: | ||
|
|
@@ -11,4 +11,4 @@ spec: | |
| name: mongodb | ||
| selector: | ||
| app: db | ||
| type: NodePort | ||
| type: ClusterIP | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like something that should be parametrized in |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: manage-pods | ||
| name: {{ .Release.Name }}-manage-pods | ||
| namespace: {{ .Release.Namespace }} | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: pubgrade | ||
| name: {{ .Release.Name }} | ||
| namespace: {{ .Release.Namespace }} | ||
| roleRef: | ||
| kind: Role | ||
| name: role-pubgrade | ||
| apiGroup: rbac.authorization.k8s.io | ||
| name: role-{{ .Release.Name }} | ||
| apiGroup: rbac.authorization.k8s.io |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: pubgrade | ||
| name: {{ .Release.Name }} | ||
| automountServiceAccountToken: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: pubgrade-service | ||
| name: {{ .Release.Name }}-service | ||
| spec: | ||
| type: NodePort | ||
| type: ClusterIP | ||
| selector: | ||
| app: pubgrade | ||
| app: {{ .Release.Name }} | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 | ||
| nodePort: 30008 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,26 +3,125 @@ pubgrade_URL: 'http://pubgrade-service.pubgrade' | |
|
|
||
| ingress: | ||
| enabled: true | ||
| url: 'your.url.without.http.com' | ||
| url: 'pupgrade.dyn.cloud.e-infra.cz' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like something commited by mistake |
||
| https: | ||
| enabled: true | ||
| issuer: letsencrypt-prod | ||
|
|
||
| name: mongodb | ||
| #Persistent volumes and claims | ||
| volumes: | ||
| Pubgrade: | ||
| # In case you are working with minikube or another single-worker solution | ||
| # you can add a peristent volume from a local directory. For fully-distributed | ||
| #clusters you should use a StorageClass already existing in your cluster, so set this to false. | ||
| deployLocalPv: true | ||
| pathToMountedDir: /pubgrade_temp_files | ||
| deployLocalPv: false | ||
| pathToMountedDir: /tmp/pubgrade_temp_files | ||
| pathToLocalDir: /tmp/pubgrade-pv | ||
| name: pubgrade-pvc | ||
| storageClass: manual | ||
| name: pvc-pubgrade | ||
| storageClass: nfs-csi | ||
| size: 2Gi | ||
| mongodb: | ||
| deployLocalPv: true | ||
| deployLocalPv: false | ||
| pathToLocalDir: /tmp/mongo-pv | ||
| name: mongo-pvc | ||
| storageClass: manual | ||
| name: pvc-mongo | ||
| storageClass: nfs-csi | ||
| size: 2Gi | ||
|
|
||
| config: | ||
| db: | ||
| host: mongodb-pubgrade | ||
| port: 27017 | ||
| dbs: | ||
| pubgradeStore: | ||
| collections: | ||
| repositories: | ||
| indexes: | ||
| - keys: | ||
| id: 1 | ||
| options: | ||
| 'unique': True | ||
| builds: | ||
| indexes: | ||
| - keys: | ||
| id: 1 | ||
| options: | ||
| 'unique': True | ||
| subscriptions: | ||
| indexes: | ||
| - keys: | ||
| id: 1 | ||
| options: | ||
| 'unique': True | ||
| users: | ||
| indexes: | ||
| - keys: | ||
| uid: 1 | ||
| options: | ||
| 'unique': True | ||
| admin_users: | ||
| indexes: | ||
| - keys: | ||
| uid: 1 | ||
| options: | ||
| 'unique': True | ||
| server: | ||
| host: '0.0.0.0' | ||
| port: 8080 | ||
| debug: True | ||
| environment: development | ||
| testing: True | ||
| use_reloader: True | ||
| api: | ||
| specs: | ||
| - path: | ||
| - api/pubgrade.yaml | ||
| append: null | ||
| add_operation_fields: | ||
| x-openapi-router-controller: pubgrade.modules.server | ||
| connexion: | ||
| strict_validation: True | ||
| validate_responses: True | ||
| options: | ||
| swagger_ui: True | ||
| serve_spec: True | ||
| exceptions: | ||
| required_members: [['msg'], ['status_code']] | ||
| status_member: ['status_code'] | ||
| exceptions: pubgrade.errors.exceptions.exceptions | ||
| log: | ||
| version: 1 | ||
| disable_existing_loggers: False | ||
| formatters: | ||
| standard: | ||
| class: logging.Formatter | ||
| style: "{" | ||
| format: "[{asctime}: {levelname:<8}] {message} [{name}]" | ||
| handlers: | ||
| console: | ||
| class: logging.StreamHandler | ||
| level: 20 | ||
| formatter: standard | ||
| stream: ext://sys.stderr | ||
| root: | ||
| level: 10 | ||
| handlers: [console] | ||
| endpoints: | ||
| repository: | ||
| id_charset: [string.ascii_lowercase, string.digits , '.' , '-'] | ||
| id_length: 6 | ||
| retries: 3 | ||
| user: | ||
| uid_charset: [string.ascii_lowercase, string.digits , '.' , '-'] | ||
| uid_length: 6 | ||
| retries: 3 | ||
| access_token: | ||
| charset: [ string.ascii_lowercase, string.digits , '.' , '-' ] | ||
| length: 32 | ||
| subscriptions: | ||
| admin_users: | ||
| - name: 'Akash' | ||
| uid: 'akash.saini' | ||
| user_access_token: 'c42a6d44e3d0' | ||
| - name: 'Alvaro' | ||
| uid: 'alvaro.gonzalez' | ||
| user_access_token: 'c42fhg44e3d0' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very suspicious change. Why change the image? To a different registry and name?