-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kustomization manifest files (#81)
- Loading branch information
Showing
6 changed files
with
114 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: etos-environment-provider | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider | ||
app.kubernetes.io/part-of: etos | ||
app.kubernetes.io/component: environment-provider-api | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: etos-environment-provider | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider | ||
spec: | ||
serviceAccountName: etos-environment-provider | ||
containers: | ||
- name: etos-environment-provider | ||
image: "registry.nordix.org/eiffel/etos-environment-provider:2.2.1" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /?id=healthcheck | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: /?id=healthcheck | ||
port: http |
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,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: etos-environment-provider | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider | ||
app.kubernetes.io/part-of: etos | ||
app.kubernetes.io/component: environment-provider-api |
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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: etos-environment-provider | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider | ||
app.kubernetes.io/part-of: etos | ||
app.kubernetes.io/component: environment-provider-api | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 80 | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: etos-environment-provider |
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 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- api/service-account.yaml | ||
- api/deployment.yaml | ||
- api/service.yaml | ||
- worker/service-account.yaml | ||
- worker/deployment.yaml | ||
|
||
|
||
# By generating the configmap it will get a unique name on each apply | ||
# this name is also set on the deployment. This means that the pods | ||
# will restart with the new configmap when changes are made. Making | ||
# it so we do not have to do rollout restart every time. | ||
configMapGenerator: | ||
- name: etos-environment-provider-worker | ||
literals: | ||
- ETR_VERSION="3.2.0" | ||
- name: etos-environment-provider |
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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: etos-environment-provider-worker | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider-worker | ||
app.kubernetes.io/part-of: etos | ||
app.kubernetes.io/component: environment-provider-worker | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: etos-environment-provider-worker | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider-worker | ||
spec: | ||
serviceAccountName: etos-environment-provider-worker | ||
containers: | ||
- name: etos-environment-provider-worker | ||
image: "registry.nordix.org/eiffel/etos-environment-provider-worker:2.2.1" | ||
imagePullPolicy: IfNotPresent | ||
envFrom: | ||
- configMapRef: | ||
name: etos-environment-provider-worker | ||
# This grace period ensures that the environment provider will wait | ||
# for the environment checkouts to complete before shutting down. | ||
terminationGracePeriodSeconds: 4250 |
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,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: etos-environment-provider-worker | ||
labels: | ||
app.kubernetes.io/name: etos-environment-provider-worker | ||
app.kubernetes.io/part-of: etos | ||
app.kubernetes.io/component: environment-provider-worker |