Skip to content

Instantly share code, notes, and snippets.

@jgato
Created March 30, 2023 11:48
Show Gist options
  • Save jgato/463faff0687c5f8522f8b0484547ae43 to your computer and use it in GitHub Desktop.
Save jgato/463faff0687c5f8522f8b0484547ae43 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: reproducer-sync-waves
annotations:
argocd.argoproj.io/sync-wave: "0"
spec: {}
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: testuser
namespace: reproducer-sync-waves
annotations:
argocd.argoproj.io/sync-wave: "1"
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: system:openshift:scc:privileged
namespace: reproducer-sync-waves
annotations:
argocd.argoproj.io/sync-wave: "1"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:openshift:scc:anyuid
subjects:
- kind: ServiceAccount
name: testuser
namespace: reproducer-sync-waves
apiVersion: v1
kind: Service
metadata:
labels:
app: delete-me
name: delete-me
namespace: reproducer-sync-waves
annotations:
argocd.argoproj.io/sync-wave: "10"
spec:
ports:
- name: "80"
nodePort: 30000
port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx-server
type: NodePort
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: reproducer-sync-waves
annotations:
argocd.argoproj.io/sync-wave: "20"
spec:
selector:
matchLabels:
app: nginx-server
replicas: 2
template:
metadata:
name: nginx
labels:
app: nginx-server
namespace: reproducer-sync-waves
spec:
serviceAccount: testuser
serviceAccountName: testuser
containers:
- name: nginx
securityContext:
runAsUser: 0
image: quay.io/thegeeklab/nginx:latest
ports:
- containerPort: 80
name: http-web-svc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment