-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding service deployment for meshcard service
- Loading branch information
1 parent
dea6974
commit d57ae24
Showing
5 changed files
with
195 additions
and
47 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source "${GEN3_HOME}/gen3/lib/utils.sh" | ||
gen3_load "gen3/lib/kube-setup-init" | ||
|
||
[[ -z "$GEN3_ROLL_ALL" ]] && gen3 kube-setup-secrets | ||
|
||
g3kubectl apply -f "${GEN3_HOME}/kube/services/kayako-wrapper/meshcard-service.yaml" | ||
gen3 roll meshcard | ||
|
||
gen3_log_info "The meshcard service has been deployed onto the kubernetes cluster" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: meshcard-deployment | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: meshcard | ||
revisionHistoryLimit: 2 | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 2 | ||
maxUnavailable: 25% | ||
template: | ||
metadata: | ||
labels: | ||
app: meshcard | ||
public: "yes" | ||
netnolimit: "yes" | ||
userhelper: "yes" | ||
GEN3_DATE_LABEL | ||
spec: | ||
affinity: | ||
podAntiAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 25 | ||
podAffinityTerm: | ||
labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- meshcard | ||
topologyKey: "kubernetes.io/hostname" | ||
nodeAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 100 | ||
preference: | ||
matchExpressions: | ||
- key: karpenter.sh/capacity-type | ||
operator: In | ||
values: | ||
- on-demand | ||
- weight: 99 | ||
preference: | ||
matchExpressions: | ||
- key: eks.amazonaws.com/capacityType | ||
operator: In | ||
values: | ||
- ONDEMAND | ||
automountServiceAccountToken: false | ||
volumes: | ||
- name: ca-volume | ||
secret: | ||
secretName: "service-ca" | ||
- name: config-volume | ||
secret: | ||
secretName: "meshcard-config" | ||
- name: privacy-policy | ||
configMap: | ||
name: "privacy-policy" | ||
containers: | ||
- name: meshcard | ||
GEN3_MESHCARD_IMAGE | ||
readinessProbe: | ||
httpGet: | ||
path: /_status/ | ||
port: 8000 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 60 | ||
timeoutSeconds: 30 | ||
livenessProbe: | ||
httpGet: | ||
path: /_status/ | ||
port: 8000 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 60 | ||
timeoutSeconds: 30 | ||
failureThreshold: 6 | ||
resources: | ||
requests: | ||
cpu: 0.6 | ||
memory: 512Mi | ||
limits: | ||
cpu: 2 | ||
memory: 4096Mi | ||
ports: | ||
- containerPort: 8000 | ||
command: | ||
- /bin/bash | ||
- /src/start.sh | ||
env: | ||
- name: HOSTNAME | ||
value: revproxy-service | ||
volumeMounts: | ||
- name: "ca-volume" | ||
readOnly: true | ||
mountPath: "/usr/local/share/ca-certificates/cdis/cdis-ca.crt" | ||
subPath: "ca.pem" | ||
imagePullPolicy: Always |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: meshcard-service | ||
spec: | ||
selector: | ||
app: meshcard | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 8000 | ||
name: http | ||
nodePort: null | ||
- protocol: TCP | ||
port: 443 | ||
targetPort: 8000 | ||
name: https | ||
nodePort: null | ||
type: ClusterIP |
Oops, something went wrong.