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

Update labels #2970

Merged
merged 1 commit into from
Aug 22, 2018
Merged
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
2 changes: 1 addition & 1 deletion deploy/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
12 changes: 7 additions & 5 deletions deploy/default-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ kind: Deployment
metadata:
name: default-http-backend
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: ingress-nginx
namespace: ingress-nginx
spec:
replicas: 1
selector:
matchLabels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
template:
metadata:
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
spec:
terminationGracePeriodSeconds: 60
containers:
Expand Down Expand Up @@ -48,10 +49,11 @@ metadata:
name: default-http-backend
namespace: ingress-nginx
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: ingress-nginx
spec:
ports:
- port: 80
targetPort: 8080
selector:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
46 changes: 37 additions & 9 deletions deploy/mandatory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ kind: Deployment
metadata:
name: default-http-backend
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: ingress-nginx
namespace: ingress-nginx
spec:
replicas: 1
selector:
matchLabels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
template:
metadata:
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: ingress-nginx
spec:
terminationGracePeriodSeconds: 60
containers:
Expand Down Expand Up @@ -54,13 +56,14 @@ metadata:
name: default-http-backend
namespace: ingress-nginx
labels:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: ingress-nginx
spec:
ports:
- port: 80
targetPort: 8080
selector:
app: default-http-backend
app.kubernetes.io/name: default-http-backend
---

kind: ConfigMap
Expand All @@ -69,35 +72,48 @@ metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---

kind: ConfigMap
apiVersion: v1
metadata:
name: tcp-services
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---

kind: ConfigMap
apiVersion: v1
metadata:
name: udp-services
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---

apiVersion: v1
kind: ServiceAccount
metadata:
name: nginx-ingress-serviceaccount
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx

---

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: nginx-ingress-clusterrole
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -153,6 +169,9 @@ kind: Role
metadata:
name: nginx-ingress-role
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -196,6 +215,9 @@ kind: RoleBinding
metadata:
name: nginx-ingress-role-nisa-binding
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -211,6 +233,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: nginx-ingress-clusterrole-nisa-binding
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -225,16 +250,19 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-ingress-controller
namespace: ingress-nginx
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
spec:
replicas: 1
selector:
matchLabels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
template:
metadata:
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
annotations:
prometheus.io/port: '10254'
prometheus.io/scrape: 'true'
Expand Down
3 changes: 2 additions & 1 deletion deploy/monitoring/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: ConfigMap
metadata:
name: prometheus-configuration
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx
name: prometheus-configuration
namespace: ingress-nginx
data:
Expand Down Expand Up @@ -38,4 +40,3 @@ data:
- source_labels: [__meta_kubernetes_service_name]
regex: prometheus-service
action: drop

19 changes: 14 additions & 5 deletions deploy/monitoring/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: grafana
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: ingress-nginx

name: grafana
namespace: ingress-nginx
spec:
selector:
matchLabels:
app: grafana
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: ingress-nginx
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -17,7 +20,8 @@ spec:
template:
metadata:
labels:
app: grafana
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: ingress-nginx
spec:
containers:
- image: grafana/grafana
Expand Down Expand Up @@ -47,11 +51,16 @@ kind: Service
metadata:
name: grafana
namespace: ingress-nginx
labels:
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: ingress-nginx

spec:
ports:
- port: 3000
protocol: TCP
targetPort: 3000
selector:
app: grafana
type: NodePort
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: ingress-nginx
type: NodePort
29 changes: 25 additions & 4 deletions deploy/monitoring/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ kind: Role
metadata:
name: prometheus-server
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx
rules:
- apiGroups: [""]
resources:
resources:
- services
- endpoints
- pods
Expand All @@ -18,6 +21,9 @@ kind: ServiceAccount
metadata:
name: prometheus-server
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx

---

Expand All @@ -26,6 +32,10 @@ kind: RoleBinding
metadata:
name: prometheus-server
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx

roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -42,15 +52,21 @@ kind: Deployment
metadata:
name: prometheus-server
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx

spec:
replicas: 1
selector:
matchLabels:
app: prometheus-server
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx
template:
metadata:
labels:
app: prometheus-server
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx
spec:
serviceAccountName: prometheus-server
containers:
Expand Down Expand Up @@ -80,9 +96,14 @@ kind: Service
metadata:
name: prometheus-service
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx

spec:
selector:
app: prometheus-server
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: ingress-nginx
type: NodePort
ports:
- port: 9090
Expand Down
3 changes: 2 additions & 1 deletion deploy/provider/aws/patch-configmap-l4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
data:
use-proxy-protocol: "true"
3 changes: 2 additions & 1 deletion deploy/provider/aws/patch-configmap-l7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
data:
use-proxy-protocol: "false"
5 changes: 3 additions & 2 deletions deploy/provider/aws/service-l4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
annotations:
# Enable PROXY protocol
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
Expand All @@ -13,7 +14,7 @@ metadata:
spec:
type: LoadBalancer
selector:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
ports:
- name: http
port: 80
Expand Down
7 changes: 4 additions & 3 deletions deploy/provider/aws/service-l7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
annotations:
# replace with the correct value of the generated certificate in the AWS console
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX"
# the backend instances are HTTP
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
# Map port 443
Expand All @@ -17,7 +18,7 @@ metadata:
spec:
type: LoadBalancer
selector:
app: ingress-nginx
app.kubernetes.io/name: ingress-nginx
ports:
- name: http
port: 80
Expand Down
Loading