Skip to content

Instantly share code, notes, and snippets.

View Cloven's full-sized avatar

Felix Gallo Cloven

  • (this is my personal account)
  • Los Angeles, CA
View GitHub Profile
I0802 05:22:03.481309 1652 event.go:216] Event(api.ObjectReference{Kind:"Deployment", Namespace:"default", Name:"sputnik", UID:"0bd9a0a6-5871-11e6-85ca-1ee1293b44bd", APIVersion:"extensions", ResourceVersion:"11559", FieldPath:""}): type: 'Normal' reason: 'ScalingReplicaSet' Scaled up replica set sputnik-309892640 to 1
I0802 05:22:03.503370 1652 event.go:216] Event(api.ObjectReference{Kind:"ReplicaSet", Namespace:"default", Name:"sputnik-309892640", UID:"0bda22a4-5871-11e6-85ca-1ee1293b44bd", APIVersion:"extensions", ResourceVersion:"11560", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' Created pod: sputnik-309892640-8lvc8
E0802 05:22:03.510447 1652 deployment_controller.go:400] Error syncing deployment default/sputnik: Operation cannot be fulfilled on deployments.extensions "sputnik": the object has been modified; please apply your changes to the latest version and try again
I0802 05:22:03.531728 1652 event.go:216] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"sputn
fsg@spatula:/Users/fsg/p/k8/sputnik $ kubectl run sputnik --image=sputnik:latest
deployment "sputnik" created
fsg@spatula:/Users/fsg/p/k8/sputnik $
sg@spatula:/Users/fsg/p/k8/sputnik $ docker build . -t sputnik:latest
Sending build context to Docker daemon 3.072 kB
Step 1 : FROM alpine
---> 4e38e38c8ce0
Step 2 : COPY sputnik.sh /
---> Using cache
---> 8d783a6b5539
Step 3 : CMD /sputnik.sh
---> Using cache
---> 185684a49ac0
FROM alpine
COPY sputnik.sh /
CMD ["/sputnik.sh"]
#!/bin/sh
while true
do
sleep 5
echo "ping"
date
done
$ minikube start
Starting local Kubernetes cluster...
Running pre-create checks...
Creating machine...
Starting local Kubernetes cluster...
Kubernetes is available at https://192.168.99.100:8443.
$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
deployment "hello-minikube" created
$ kubectl expose deployment hello-minikube --type=NodePort
-module(user_default).
-author('felixgallo@gmail.com').
-author('wudeng@4399.net').
-author('serge@hq.idt.net').
-author('Ward Bekker').
-author('Tobbe Tornqvist').
-author('Scott Fritchie').
%% if aware of other contributors, please add them here.
@Cloven
Cloven / run-snippet.rb
Created December 10, 2012 18:09
run fragment for netty4a8 example
u = TCPService.new().run()
puts "ready to serve!"
@Cloven
Cloven / channelinboundworkhandler-snippet.rb
Created December 10, 2012 18:00
channelinboundworkhandler for netty4a8 example
class ChannelInboundWorkHandler < ChannelInboundHandlerAdapter
def newInboundBuffer(ctx)
return Unpooled.messageBuffer(512)
end
def freeInboundBuffer(ctx, channelbuffer)
# netty handles this
end
@Cloven
Cloven / channelinitializer-snippet.rb
Created December 10, 2012 17:41
ChannelInitializer for netty4a8 example
class TCPServiceChannelInitializer < ChannelInitializer
def initChannel(sch)
sch.pipeline().addLast(DelimiterBasedFrameDecoder.new(8192,Delimiters.lineDelimiter()))
sch.pipeline().addLast(StringDecoder.new(Charset.defaultCharset()))
sch.pipeline().addLast(ChannelInboundWorkHandler.new())
puts "Channel initialized"
end
def self.exceptionCaught(ctx,throwable)