Skip to content
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

test: Add YAML files for deployment (valid) #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions gitops-deployments/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: test-deployment-one
labels:
name: test-deployment-one
owner: Antvirf
spec:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
name: test-deployment-one
spec:
containers:
- image: stefanprodan/podinfo:6.0.0
name: test-deployment-one
resources:
requests:
cpu: "20m"
memory: "55M"
livenessProbe:
httpGet:
path: /_status/healthz
port: 5000
initialDelaySeconds: 90
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /_status/healthz
port: 5000
initialDelaySeconds: 30
timeoutSeconds: 10
env:
- name: ENVVARNAME
value: ENVVARVALUE
ports:
- containerPort: 5000
name: test-deployment-one
volumeMounts:
- mountPath: /data
name: data
volumes:
- name: data
emptyDir: {}
restartPolicy: Always
imagePullPolicy: Always
12 changes: 12 additions & 0 deletions gitops-deployments/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Service
apiVersion: v1
metadata:
name: test-service-two
spec:
selector:
app: test-app-one
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 8080