This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from kurtosis-tech/laurent/k8s-manifest-input
feat: Switch docker compose input to k8s manifest
- Loading branch information
Showing
3 changed files
with
131 additions
and
7 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
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,124 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis-prod | ||
version: v1 | ||
name: redis-prod | ||
namespace: voting-app | ||
spec: | ||
ports: | ||
- name: tcp-redis | ||
port: 6379 | ||
protocol: TCP | ||
targetPort: 6379 | ||
selector: | ||
app: redis-prod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: redis-prod | ||
version: v1 | ||
name: redis-prod | ||
namespace: voting-app | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: redis-prod | ||
version: v1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "true" | ||
labels: | ||
app: redis-prod | ||
version: v1 | ||
spec: | ||
containers: | ||
- name: redis-prod | ||
image: bitnami/redis:6.0.8 | ||
env: | ||
- name: ALLOW_EMPTY_PASSWORD | ||
value: "yes" | ||
- name: REDIS_PORT_NUMBER | ||
value: "6379" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 6379 | ||
name: redis | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: voting-app-ui | ||
version: v1 | ||
name: voting-app-ui | ||
namespace: voting-app | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 80 | ||
selector: | ||
app: voting-app-ui | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: voting-app-ui | ||
version: v1 | ||
name: voting-app-ui | ||
namespace: voting-app | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: voting-app-ui | ||
version: v1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "true" | ||
labels: | ||
app: voting-app-ui | ||
version: v1 | ||
spec: | ||
containers: | ||
- name: voting-app-ui | ||
image: kurtosistech/demo-voting-app-ui | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 80 | ||
env: | ||
- name: REDIS | ||
value: "redis-prod" |