Skip to content

Commit

Permalink
deploy http-echo - undeploy podstalk
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jun 1, 2024
1 parent 2b775fe commit 57015d3
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
21 changes: 21 additions & 0 deletions deployment/apps/http-echo/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: podstatus
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: podstatus
subjects:
- kind: ServiceAccount
name: default
namespace: podstatus
roleRef:
kind: Role
name: podstatus
apiGroup: rbac.authorization.k8s.io
22 changes: 22 additions & 0 deletions deployment/apps/http-echo/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: http-echo
spec:
selector:
matchLabels:
app: http-echo
serviceName: http-echo
replicas: 5
template:
metadata:
labels:
app: http-echo
spec:
terminationGracePeriodSeconds: 1
containers:
- name: echo
image: docker.io/hashicorp/http-echo:1.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
2 changes: 1 addition & 1 deletion deployment/apps/podstalk/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
terminationGracePeriodSeconds: 1
containers:
- name: podstalk
image: docker.io/mhutter/podstalk
image: docker.io/mhutter/podstalk:2019-arm64
ports:
- containerPort: 8080
env:
Expand Down
5 changes: 5 additions & 0 deletions deployment/apps/podstatus/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: LOG_LEVEL
value: DEBUG
- name: K8S_NAMESPACE
value: http-echo
envFrom:
- secretRef:
name: podstatus-env
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: podstalk
name: http-echo
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: apps
source:
path: deployment/apps/podstalk
path: deployment/apps/http-echo
repoURL: https://github.com/vshn/conferenceli.git
targetRevision: HEAD
destination:
namespace: podstalk
namespace: http-echo
server: https://kubernetes.default.svc
syncPolicy:
syncOptions:
Expand Down

0 comments on commit 57015d3

Please sign in to comment.