Skip to content

Commit

Permalink
deployment for podstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jun 1, 2024
1 parent c9a298e commit 9229c8c
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ config.json
brother-config.json
frpc.toml
deployment/apps/contactform/secret.yaml
deployment/apps/podstatus/secret.yaml
kubeconfig
22 changes: 22 additions & 0 deletions deployment/apps/podstalk/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,25 @@ roleRef:
kind: Role
name: podLister
apiGroup: rbac.authorization.k8s.io
---
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
47 changes: 47 additions & 0 deletions deployment/apps/podstatus/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: podstatus
labels:
app.kubernetes.io/name: podstatus
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: podstatus
template:
metadata:
labels:
app.kubernetes.io/name: podstatus
spec:
serviceAccountName: default
containers:
- name: podstatus
image: ghcr.io/vshn/conferenceli-podstatus:main
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- secretRef:
name: podstatus-env
volumeMounts:
- name: data
mountPath: /opt/data
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources: {}
volumes:
- name: data
persistentVolumeClaim:
claimName: data
- name: frpc-config
configMap:
name: frpc-config
11 changes: 11 additions & 0 deletions deployment/apps/podstatus/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: podstatus
spec:
type: NodePort
selector:
app: podstatus
ports:
- protocol: TCP
port: 8080
19 changes: 19 additions & 0 deletions deployment/argoapps/podstatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: podstatus
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: apps
source:
path: deployment/apps/podstatus
repoURL: https://github.com/vshn/conferenceli.git
targetRevision: HEAD
destination:
namespace: podstatus
server: https://kubernetes.default.svc
syncPolicy:
syncOptions:
- CreateNamespace=true

0 comments on commit 9229c8c

Please sign in to comment.