Skip to content

Commit

Permalink
Add gke config files (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Zenith Yap <[email protected]>
  • Loading branch information
zenithyap and Zenith Yap authored Nov 13, 2023
1 parent 5a7e00b commit 18920b4
Show file tree
Hide file tree
Showing 60 changed files with 2,605 additions and 950 deletions.

This file was deleted.

22 changes: 0 additions & 22 deletions k8/prod/accessControls/clusterRoles/list-watch-cluster-prod.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions k8/prod/configMaps/matching-service-config-prod.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions k8/prod/configMaps/matching-service-db-config-prod.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions k8/prod/configMaps/matching-worker-service-config-prod.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions k8/prod/configMaps/postgres-config-prod.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions k8/prod/configMaps/prometheus-config-prod.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions k8/prod/configMaps/question-service-config-prod.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions k8/prod/configMaps/rabbitmq-config-prod.yaml

This file was deleted.

167 changes: 167 additions & 0 deletions k8/prod/deployment/collaboration-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
autopilot.gke.io/resource-adjustment: '{"input":{"containers":[{"name":"collaboration-service-1"}]},"output":{"containers":[{"limits":{"cpu":"500m","ephemeral-storage":"1Gi","memory":"2Gi"},"requests":{"cpu":"500m","ephemeral-storage":"1Gi","memory":"2Gi"},"name":"collaboration-service-1"}]},"modified":true}'
autopilot.gke.io/warden-version: 2.7.41
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2023-11-12T15:39:24Z"
generation: 3
labels:
app: collaboration-service-app
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:spec:
f:replicas: {}
manager: vpa-recommender
operation: Update
subresource: scale
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:labels:
.: {}
f:app: {}
f:spec:
f:progressDeadlineSeconds: {}
f:revisionHistoryLimit: {}
f:selector: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:labels:
.: {}
f:app: {}
f:spec:
f:containers:
k:{"name":"collaboration-service-1"}:
.: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:dnsPolicy: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
manager: GoogleCloudConsole
operation: Update
time: "2023-11-12T15:39:24Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:deployment.kubernetes.io/revision: {}
f:status:
f:availableReplicas: {}
f:conditions:
.: {}
k:{"type":"Available"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Progressing"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:observedGeneration: {}
f:readyReplicas: {}
f:replicas: {}
f:updatedReplicas: {}
manager: kube-controller-manager
operation: Update
subresource: status
time: "2023-11-12T15:45:56Z"
name: collaboration-service-deployment
namespace: default
resourceVersion: "1328049"
uid: e5325edc-42d5-4a61-884c-436bc1e2249a
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: collaboration-service-app
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: collaboration-service-app
spec:
containers:
- image: registry.gitlab.com/peerprepgroup51sem1y2023/docker/collaboration-service:latest
imagePullPolicy: Always
name: collaboration-service-1
resources:
limits:
cpu: 500m
ephemeral-storage: 1Gi
memory: 2Gi
requests:
cpu: 500m
ephemeral-storage: 1Gi
memory: 2Gi
securityContext:
capabilities:
drop:
- NET_RAW
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
seccompProfile:
type: RuntimeDefault
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: kubernetes.io/arch
operator: Equal
value: amd64
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2023-11-12T15:39:40Z"
lastUpdateTime: "2023-11-12T15:39:40Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2023-11-12T15:39:24Z"
lastUpdateTime: "2023-11-12T15:39:40Z"
message: ReplicaSet "collaboration-service-deployment-77948f9645" has successfully
progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 3
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Loading

0 comments on commit 18920b4

Please sign in to comment.